示例#1
0
 public override void Disconnect()
 {
     QClientScene.HandleClientDisconnect(m_Connection);
     if (m_Connected)
     {
         PostInternalMessage(33);
         m_Connected = false;
     }
     m_AsyncConnect = ConnectState.Disconnected;
     m_LocalServer.RemoveLocalClient(m_Connection);
 }
示例#2
0
 public void Disconnect()
 {
     address = "";
     isReady = false;
     QClientScene.HandleClientDisconnect(this);
     if (hostId != -1)
     {
         NetworkTransport.Disconnect(hostId, connectionId, out var b);
         RemoveObservers();
     }
 }