LuaMonoBehaviour.CallLuaFunction C# (CSharp) Method

CallLuaFunction() private method

private CallLuaFunction ( string funcName ) : void
funcName string
return void
    private void CallLuaFunction(string funcName,params object[] args)
    {
        if(receiver != null){
            receiver(funcName,args);
        }
    }

Usage Example

Exemplo n.º 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);
        }
    }
All Usage Examples Of LuaMonoBehaviour::CallLuaFunction