diff options
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); + } +} + + |
