aboutsummaryrefslogtreecommitdiff
path: root/Assets/Scripts/PlayerManager.cs
diff options
context:
space:
mode:
authorSmallFox <2806143047@qq.com>2026-05-31 17:42:01 +0800
committerSmallFox <2806143047@qq.com>2026-05-31 17:42:01 +0800
commitff1e4698f877ead17ee723ff465f26fad58cd0a0 (patch)
tree14a97ffbf7e360c8676ba81037d582b9c0aaaec6 /Assets/Scripts/PlayerManager.cs
parentdca6ed8a79a1b4df00720a02f5ae96b2ec9e7283 (diff)
合并最新分支,重构Roll,增加了Step_Back,有点手感问题后面调
Diffstat (limited to 'Assets/Scripts/PlayerManager.cs')
-rw-r--r--Assets/Scripts/PlayerManager.cs17
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;
+ }
}