mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
21 lines
541 B
C#
21 lines
541 B
C#
using UnityEngine;
|
|
|
|
namespace MoleMole
|
|
{
|
|
[SharedBetweenAnimators]
|
|
public class StateAvatarRunBS : StateMachineBehaviour
|
|
{
|
|
public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
{
|
|
BaseMonoAvatar component = animator.GetComponent<BaseMonoAvatar>();
|
|
component.RunBSStart();
|
|
}
|
|
|
|
public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
{
|
|
BaseMonoAvatar component = animator.GetComponent<BaseMonoAvatar>();
|
|
component.RunBSStop();
|
|
}
|
|
}
|
|
}
|