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); }
void OnDestroy() { //EventSender.onEvent -= OnEvent; EventSender.Remove(this); base.OnDestroy(); }