/// <summary> /// 服务器断开连接 /// </summary> public void Disconnect() { isConnect = false; tcpSocket.Disconnect(); udpSocket.Stop(); tcpReciver.Reset(); udpReciver.Reset(); }
/// <summary> /// 服务器断开连接 /// </summary> public void Disconnect() { isConnect = false; Debug.Log("断开TCP"); tcpSocket.Disconnect(); Debug.Log("断开UDP"); udpSocket.Stop(); tcpReciver.Reset(); udpReciver.Reset(); }