diff options
| author | SmallFox <2806143047@qq.com> | 2026-06-02 20:02:14 +0800 |
|---|---|---|
| committer | SmallFox <2806143047@qq.com> | 2026-06-03 21:12:19 +0800 |
| commit | 364bd0db3dba9a0cc80f76cb465d80209922557f (patch) | |
| tree | 138e414a8f1426307288af61d63c13a81f9b3033 /Assets/Scripts/AnimatorHandler.cs | |
| parent | 5b955377fd4aae7cb24c2b16c15fe3ba20ceae8a (diff) | |
小写一点
Diffstat (limited to 'Assets/Scripts/AnimatorHandler.cs')
| -rw-r--r-- | Assets/Scripts/AnimatorHandler.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Assets/Scripts/AnimatorHandler.cs b/Assets/Scripts/AnimatorHandler.cs index 157b78f..91c782e 100644 --- a/Assets/Scripts/AnimatorHandler.cs +++ b/Assets/Scripts/AnimatorHandler.cs @@ -19,6 +19,7 @@ namespace DS public PlayerLocomotion playerLocomotion; // 玩家移动控制器引用,用于传递根运动数据 public Animator animator; // 动画器组件引用 public InputHandler inputHandler; + public PlayerManager playerManager; [Header("动画参数哈希")] private int _vertical; // "Vertical" 动画参数的哈希值,用于高效设置动画参数 @@ -177,7 +178,7 @@ namespace DS // PlayerLocomotion 会将这些位移应用到角色控制器上 playerLocomotion.rootMotion = rootMotion; - if (inputHandler.isInteracting == false) + if (playerManager.isInteracting == false) { return; } |
