Пример #1
0
 /// <summary>
 /// 断开连接
 /// </summary>
 public void Disconnect()
 {
     if (m_client.Connected)
     {
         m_client.Disconnect();
         Debug.Log("Disconnect.....");
     }
 }
Пример #2
0
 /// <summary>
 /// 断开连接
 /// </summary>
 public void Disconnect()
 {
     if (client != null && client.Connected)
     {
         client.Disconnect();
         Debug.Log("Disconnect.....");
     }
 }