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