From ff1e4698f877ead17ee723ff465f26fad58cd0a0 Mon Sep 17 00:00:00 2001 From: SmallFox <2806143047@qq.com> Date: Sun, 31 May 2026 17:42:01 +0800 Subject: 合并最新分支,重构Roll,增加了Step_Back,有点手感问题后面调 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/PlayerManager.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Assets/Scripts/PlayerManager.cs') diff --git a/Assets/Scripts/PlayerManager.cs b/Assets/Scripts/PlayerManager.cs index 46a2894..1acd8e4 100644 --- a/Assets/Scripts/PlayerManager.cs +++ b/Assets/Scripts/PlayerManager.cs @@ -1,8 +1,23 @@ +using System; using System.Collections; using System.Collections.Generic; +using DS; using UnityEngine; public class PlayerManager : MonoBehaviour { - public Animator animator; + private InputHandler _inputHandler; + private Animator _animator; + + private void Start() + { + _inputHandler = GetComponent(); + _animator = GetComponentInChildren(); + } + + private void Update() + { + _inputHandler.isInteracting = _animator.GetBool("isInteracting"); + _inputHandler.rollFlag = false; + } } -- cgit