private void OnGateConnected() { AccountData accountData = ModelManager.Instance.Get_accountData_X(); ServerListModelData serverListModelData = ModelManager.Instance.Get_serverInfo(); string accountId = accountData.AccountId; string tokenKey = serverListModelData.m_TokenKey; SendMsgManager.Instance.SendGateSelfChannelMessage(21, new SendMsgManager.SendMsgParam(true, string.Empty, true, 15f), new object[] { accountId, tokenKey }); this._connectState = GateReconnection.ConnectState.ValidateToken; }
private void SelectServer() { ServerListModelData serverInfo = ModelManager.Instance.Get_serverInfo(); ClientLogger.AssertNotNull(serverInfo, "serverInfo == null"); string tcpaddress = serverInfo.serverlist.Find((ServerInfo obj) => obj.serverid == serverInfo.ServerId).tcpaddress; string sessionId = serverInfo.SessionId; string lobbyId = serverInfo.LobbyId; SendMsgManager.Instance.SendGateSelfChannelMessage(20, new SendMsgManager.SendMsgParam(true, string.Empty, true, 15f), new object[] { tcpaddress, sessionId, lobbyId }); }