/// <summary> /// 析构函数 /// </summary> void OnDestroy() { if (_socket != null) { _socket.OnRemove(); } _events.Clear(); }
public override void DoClose() { if (m_SocketClient == null) { return; } m_SocketClient.OnRemove(); }
/// <summary> /// 析构函数 /// </summary> void OnDestroy() { if (_socket != null) { _socket.OnRemove(); } _events.Clear(); _msgList.Clear(); Debug.Log("<NetworkMgr> OnDestroy"); }
static int OnRemove(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); SocketClient obj = (SocketClient)ToLua.CheckObject <SocketClient>(L, 1); obj.OnRemove(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
void OnDestroy() { client.OnRemove(); }
/// <summary> /// 析构函数 /// </summary> void OnDestroy() { _socketClient.OnRemove(); Debug.Log("~NetworkManager was destroy"); }