add project files
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class EndAnimBool : StateMachineBehaviour
|
||||
{
|
||||
public List<string> listAnim;
|
||||
|
||||
public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
||||
{
|
||||
foreach (string name in listAnim)
|
||||
{
|
||||
animator.SetBool(name, value: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user