From ff1e4698f877ead17ee723ff465f26fad58cd0a0 Mon Sep 17 00:00:00 2001 From: SmallFox <2806143047@qq.com> Date: Sun, 31 May 2026 17:42:01 +0800 Subject: 合并最新分支,重构Roll,增加了Step_Back,有点手感问题后面调 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/ResetIsInteracting.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Assets/Scripts/ResetIsInteracting.cs (limited to 'Assets/Scripts/ResetIsInteracting.cs') 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); + } +} + + -- cgit