/// <summary> /// 断开连接 /// </summary> public void Disconnect() { if (m_client.Connected) { m_client.Disconnect(); Debug.Log("Disconnect....."); } }
/// <summary> /// 断开连接 /// </summary> public void Disconnect() { if (client != null && client.Connected) { client.Disconnect(); Debug.Log("Disconnect....."); } }