Files
0A-KFCommonUtilityLib/KFAttached/Animation/StateMachineBehaviours/AnimationAimRecoilResetState.cs
2025-06-04 16:13:32 +09:30

15 lines
471 B
C#

using UnityEngine;
public class AnimationAimRecoilResetState : StateMachineBehaviour
{
public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
{
animator.GetComponent<AnimationAimRecoilReferences>()?.Rollback();
}
public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
{
animator.GetComponent<AnimationAimRecoilReferences>()?.Rollback();
}
}