public IEnumerator ToLoginStart(string accountStr, string passwordStr) { CConnectingDialog.ToShow(); yield return(StartCoroutine(App.Util.Global.SUser.RequestLogin(accountStr, passwordStr))); if (App.Util.Global.SUser.self == null) { CConnectingDialog.ToClose(); yield break; } yield return(AppInitialize.Initialize()); App.Util.SceneManager.LoadScene(App.Util.SceneManager.Scenes.Top.ToString()); }
public IEnumerator ToRegisterStart( ) { CConnectingDialog.ToShow(); SMaster sMaster = new SMaster(); yield return(StartCoroutine(sMaster.RequestVersions())); App.Util.Global.versions = sMaster.versions; CConnectingDialog.ToClose(); CLoadingDialog.ToShow(); yield return(StartCoroutine(Init(App.Util.Global.versions))); App.Util.SceneManager.LoadScene(App.Util.SceneManager.Scenes.Register.ToString()); }
public IEnumerator ToLoginStart(string accountStr, string passwordStr) { CConnectingDialog.ToShow(); yield return(StartCoroutine(App.Util.Global.SUser.RequestLogin(accountStr, passwordStr))); if (App.Util.Global.SUser.self == null) { CConnectingDialog.ToClose(); yield break; } SMaster sMaster = new SMaster(); yield return(StartCoroutine(sMaster.RequestVersions())); App.Util.Global.versions = sMaster.versions; CConnectingDialog.ToClose(); CLoadingDialog.ToShow(); yield return(StartCoroutine(Init(App.Util.Global.versions))); App.Util.SceneManager.LoadScene(App.Util.SceneManager.Scenes.Top.ToString()); }