using GameFramework.Event; using GameFramework.WebRequest; using System.Collections; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System.Text; using BestHTTP; using UnityEngine; using UnityEngine.UI; using UnityGameFramework.Runtime; using System; using UnityEngine.SceneManagement; public class StudyCenterForm : UIFormLogic { bool remenberMe = false; public Sprite[] loginSelectionTypes; InputField userName; InputField userPassword; GameObject loginObj; GameObject entryObj; Toggle remenber; Button loginSelection1; Button loginSelection2; Button loginBtn; private Button quitBtn; GameObject navigationBtn1; GameObject navigationBtn2; GameObject navigationBtn3; GameObject nb1; GameObject nb2; GameObject nb3; GameObject nb4; GameObject nb5; GameObject nb6; Text userNameText; GameObject navigation2; protected override void OnInit(object userData) { base.OnInit(userData); InItUiComponent(); } protected override void OnOpen(object userData) { base.OnOpen(userData); GameMain.Event.Subscribe(ChangeGameModeTypeEvent.EventId, OnChangeGameMode); if (PlayerPrefs.HasKey("LastUserName") && userName != null && userPassword != null && remenber != null) { userName.text = PlayerPrefs.GetString("LastUserName"); userPassword.text = PlayerPrefs.GetString("LastPassword"); remenber.isOn = true; remenberMe = true; } else { userName.text = ""; userPassword.text = ""; remenber.isOn = false; remenberMe = false; } } private void InItUiComponent() { loginObj = this.transform.Find("Login").gameObject; entryObj = this.transform.Find("Entry").gameObject; loginSelection1 = this.transform.Find("Login/Content/Section1").GetComponent