public void SetServerInfo() { List <string[]> list = IpData.GetServerList(); SetLastServer(IpData.GetCurServerData()); SetServerList(list); }
private void SetLastServer(string[] firstServer) { string[] lastinfo = IpData.GetLastServerData(); if (null == lastinfo || lastinfo.Length <= 0) { lastinfo = firstServer; } m_lastLoginItem.SetInfo(-1, lastinfo[0], lastinfo[3]); }
private void OnClickServer() { if (_index < 0) { return; } IpData.SetCurServerData(_index); LoginPanel.GetInst().SetCurServer(); ServerListPanel.GetInst().ClosePanel(); }
public void OnConfigLoadEnd() { SetCurServer(); #if PLATFORM_IOS_SDK || PLATFORM_ANDROID_SDK wxNode.SetActive(true); hideNode.SetActive(false); #else wxNode.SetActive(false); hideNode.SetActive(true); #endif checkInfoLabel.text = string.Format(ConfigData.GetValue("InitValues_Common", "CHECK_INFO", "Value"), ApplicationConst.BundleVersion); if (IpData.GetServerCount() == 1) { curServerBtn.gameObject.SetActive(false); } }
public void SaveAccount() { PlayerPrefs.SetString("LoginAccount", accountInput.text); PlayerPrefs.SetString("LoginPassword", passwordInput.text); IpData.WriteLastServerIndex(); }
public void SetCurServer() { string[] info = IpData.GetCurServerData(); curServerIndexLabel.text = info[0]; curServerNameLabel.text = info[3]; }