CallLuaFunction() private method

private CallLuaFunction ( string funcName ) : void
funcName string
return void
Example #1
0
    public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        LuaMonoBehaviour luaMono = animator.gameObject.GetComponent <LuaMonoBehaviour>();

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

        if (luaMono != null)
        {
            luaMono.CallLuaFunction("OnStateMachineExit", stateMachinePathHash);
        }
    }