예제 #1
0
        /// <summary>
        /// 服务器断开连接
        /// </summary>
        public void Disconnect()
        {
            isConnect = false;
            tcpSocket.Disconnect();
            udpSocket.Stop();

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

            tcpReciver.Reset();
            udpReciver.Reset();
        }