16 lines
328 B
C#
16 lines
328 B
C#
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);
|
|
}
|
|
}
|
|
}
|