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); }
public void Disconnect() { address = ""; isReady = false; QClientScene.HandleClientDisconnect(this); if (hostId != -1) { NetworkTransport.Disconnect(hostId, connectionId, out var b); RemoveObservers(); } }