private void ClickBackButton(GameObject objct_1 = null) { backButton backButton = this.record; if (backButton != backButton.panel2) { if (backButton == backButton.panel3) { this.panel1.gameObject.SetActive(true); this.BackButton.gameObject.SetActive(false); this.panel3.gameObject.SetActive(false); this.panel2.gameObject.SetActive(false); this.SNS.gameObject.SetActive(false); this.record = backButton.panel1; } } else { this.panel1.gameObject.SetActive(true); this.BackButton.gameObject.SetActive(false); this.panel2.gameObject.SetActive(false); this.panel3.gameObject.SetActive(false); this.SNS.gameObject.SetActive(false); this.record = backButton.panel1; } }
public void ShowOtherLogin() { this.panel1.gameObject.SetActive(false); this.panel2.gameObject.SetActive(true); this.BackButton.gameObject.SetActive(true); this.record = backButton.panel2; }
private void clickRegisterAccount(GameObject objct_1 = null) { List <string[]> list = ModelManager.Instance.Get_LoginList(); if (list.Count >= 1) { long num = 0L; string text = ModelManager.Instance.Get_LoginList()[0][0]; string text2 = ModelManager.Instance.Get_LoginList()[0][1]; if (!long.TryParse(text, out num) && list.Count > 1) { text = ModelManager.Instance.Get_LoginList()[1][0]; text2 = ModelManager.Instance.Get_LoginList()[1][1]; } if (text != null && text2 != null && text != string.Empty && text2 != string.Empty) { this.panel1.gameObject.SetActive(false); this.Message.value = string.Empty; this.panel3.gameObject.SetActive(false); this.panel2.gameObject.SetActive(true); this.BackButton.gameObject.SetActive(true); this.SNS.gameObject.SetActive(false); this.record = backButton.panel2; this.Account.value = text; this.PIN.value = text2; } } else { this.panel1.gameObject.SetActive(false); this.Message.value = string.Empty; this.panel3.gameObject.SetActive(true); this.panel2.gameObject.SetActive(false); this.BackButton.gameObject.SetActive(true); this.SNS.gameObject.SetActive(false); this.record = backButton.panel3; } }
private void clickUseAccountLogin(GameObject objct_1 = null) { if (this.SpeedRegister.gameObject.activeInHierarchy) { this.panel1.gameObject.SetActive(false); this.panel2.gameObject.SetActive(true); this.BackButton.gameObject.SetActive(true); this.record = backButton.panel2; } else { string editpassworld = string.Empty; List <string[]> list = this.ListLogin.GetComponent <UIListLogin>().userData; for (int i = 0; i < list.Count; i++) { if (list[i][0] == this.ListLogin.GetComponent <UIListLogin>().Account) { editpassworld = list[i][1]; break; } } this.LoginServer(this.ListLogin.GetComponent <UIListLogin>().Account, editpassworld, 2); } }