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/ResetIsInteracting.cs | |
| parent | dca6ed8a79a1b4df00720a02f5ae96b2ec9e7283 (diff) | |
合并最新分支,重构Roll,增加了Step_Back,有点手感问题后面调
Diffstat (limited to 'Assets/Scripts/ResetIsInteracting.cs')
| -rw-r--r-- | Assets/Scripts/ResetIsInteracting.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Assets/Scripts/ResetIsInteracting.cs b/Assets/Scripts/ResetIsInteracting.cs new file mode 100644 index 0000000..a587a68 --- /dev/null +++ b/Assets/Scripts/ResetIsInteracting.cs @@ -0,0 +1,15 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class ResetIsInteracting : StateMachineBehaviour +{ + + // OnStateExit is called when a transition ends and the state machine finishes evaluating this state + override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) + { + animator.SetBool("isInteracting", false); + } +} + + |
