mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
22 lines
436 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|