예제 #1
0
 public void Disconnect()
 {
     _socketClient = null;
     _isConnected  = false;
     GAME2017.UIManager.Instance.ShowAlert("网络连接已断开");
 }
예제 #2
0
 public bool Init()
 {
     _socketClient = new SocketClient();
     _isConnected  = _socketClient.ConnectServer(_serverIP, _serverPort);
     return(_isConnected);
 }