Unity-Animator深入系列---StateMachineBehaviour状态机脚本学习
回到Animator深入系列总目录首先这个脚本必须继承自StateMachineBehaviourpublicclassMySMB:StateMachineBehaviour{publicoverridevoidOnStateEnter(Animatoranimator,AnimatorStateInfostateInfo,intlayerIndex){base.OnStateEnter(anim