示例#1
0
        public void SetServerInfo()
        {
            List <string[]> list = IpData.GetServerList();

            SetLastServer(IpData.GetCurServerData());
            SetServerList(list);
        }
示例#2
0
        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]);
        }
示例#3
0
 private void OnClickServer()
 {
     if (_index < 0)
     {
         return;
     }
     IpData.SetCurServerData(_index);
     LoginPanel.GetInst().SetCurServer();
     ServerListPanel.GetInst().ClosePanel();
 }
示例#4
0
        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);
            }
        }
示例#5
0
 public void SaveAccount()
 {
     PlayerPrefs.SetString("LoginAccount", accountInput.text);
     PlayerPrefs.SetString("LoginPassword", passwordInput.text);
     IpData.WriteLastServerIndex();
 }
示例#6
0
 public void SetCurServer()
 {
     string[] info = IpData.GetCurServerData();
     curServerIndexLabel.text = info[0];
     curServerNameLabel.text  = info[3];
 }