diff options
| author | SmallFox <2806143047@qq.com> | 2026-05-31 17:42:01 +0800 |
|---|---|---|
| committer | SmallFox <2806143047@qq.com> | 2026-05-31 17:42:01 +0800 |
| commit | ff1e4698f877ead17ee723ff465f26fad58cd0a0 (patch) | |
| tree | 14a97ffbf7e360c8676ba81037d582b9c0aaaec6 /Assets/Scripts/PlayerManager.cs | |
| parent | dca6ed8a79a1b4df00720a02f5ae96b2ec9e7283 (diff) | |
合并最新分支,重构Roll,增加了Step_Back,有点手感问题后面调
Diffstat (limited to 'Assets/Scripts/PlayerManager.cs')
| -rw-r--r-- | Assets/Scripts/PlayerManager.cs | 17 |
1 files changed, 16 insertions, 1 deletions
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<InputHandler>(); + _animator = GetComponentInChildren<Animator>(); + } + + private void Update() + { + _inputHandler.isInteracting = _animator.GetBool("isInteracting"); + _inputHandler.rollFlag = false; + } } |
