OnRemove() public méthode

public OnRemove ( ) : void
Résultat void
 /// <summary>
 /// 析构函数
 /// </summary>
 void OnDestroy()
 {
     if (_socket != null)
     {
         _socket.OnRemove();
     }
     _events.Clear();
 }
        public override void DoClose()
        {
            if (m_SocketClient == null)
            {
                return;
            }

            m_SocketClient.OnRemove();
        }
Exemple #3
0
 /// <summary>
 /// 析构函数
 /// </summary>
 void OnDestroy()
 {
     if (_socket != null)
     {
         _socket.OnRemove();
     }
     _events.Clear();
     _msgList.Clear();
     Debug.Log("<NetworkMgr> OnDestroy");
 }
Exemple #4
0
 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));
     }
 }
Exemple #5
0
 void OnDestroy()
 {
     client.OnRemove();
 }
Exemple #6
0
 /// <summary>
 /// 析构函数
 /// </summary>
 void OnDestroy()
 {
     _socketClient.OnRemove();
     Debug.Log("~NetworkManager was destroy");
 }