Exemplo n.º 1
0
    static int Registere(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        BaseLua arg0 = LuaScriptMgr.GetNetObject <BaseLua>(L, 1);
        bool    o    = EventSender.Registere(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Exemplo n.º 2
0
    protected override void RunBeforeAwake()
    {
        //if(AddListener)
        //EventSender.onEvent += OnEvent;
        EventSender.Registere(this);

        LuaName         = LuaLink;
        isLuaController = true;
    }