aboutsummaryrefslogtreecommitdiff
path: root/Assets/Scripts/ResetIsInteracting.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/ResetIsInteracting.cs
parentdca6ed8a79a1b4df00720a02f5ae96b2ec9e7283 (diff)
合并最新分支,重构Roll,增加了Step_Back,有点手感问题后面调
Diffstat (limited to 'Assets/Scripts/ResetIsInteracting.cs')
-rw-r--r--Assets/Scripts/ResetIsInteracting.cs15
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);
+ }
+}
+
+