示例#1
0
    static int Remove(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        BaseLua arg0 = LuaScriptMgr.GetNetObject <BaseLua>(L, 1);
        bool    o    = EventSender.Remove(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
示例#2
0
 void OnDestroy()
 {
     //EventSender.onEvent -= OnEvent;
     EventSender.Remove(this);
     base.OnDestroy();
 }