public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { LuaMonoBehaviour luaMono = animator.gameObject.GetComponent <LuaMonoBehaviour>(); if (luaMono != null) { luaMono.CallLuaFunction("OnStateEnter", stateInfo.fullPathHash); } }
public override void OnStateMachineExit(Animator animator, int stateMachinePathHash) { LuaMonoBehaviour luaMono = animator.gameObject.GetComponent <LuaMonoBehaviour>(); if (luaMono != null) { luaMono.CallLuaFunction("OnStateMachineExit", stateMachinePathHash); } }