public void Shutdown() { if (LogFilter.logDebug) { Debug.Log("Shutting down client " + this.m_ClientId); } this.m_ClientId = -1; NetworkClient.RemoveClient(this); if (NetworkClient.s_Clients.Count == 0) { NetworkClient.SetActive(false); } }
/// <summary> /// <para>Shut down a client.</para> /// </summary> public void Shutdown() { if (LogFilter.logDebug) { Debug.Log((object)("Shutting down client " + (object)this.m_ClientId)); } if (this.m_ClientId != -1) { NetworkTransport.RemoveHost(this.m_ClientId); this.m_ClientId = -1; } NetworkClient.RemoveClient(this); if (NetworkClient.s_Clients.Count != 0) { return; } NetworkClient.SetActive(false); }