Files
BH3/Assets/Scripts/Assembly-CSharp/MoleMole/StateBaseLayer.cs
2025-08-13 09:26:42 +08:00

22 lines
436 B
C#

using UnityEngine;
namespace MoleMole
{
public class StateBaseLayer : StateMachineBehaviour
{
private BaseMonoAnimatorEntity _entity;
public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
{
if (_entity == null)
{
_entity = animator.GetComponent<BaseMonoAnimatorEntity>();
}
if (layerIndex == 0)
{
_entity.AddFrameExitedAnimatorStates(stateInfo);
}
}
}
}