コード例 #1
0
ファイル: CLogo.cs プロジェクト: zlbsy/sh109
        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());
        }
コード例 #2
0
        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());
        }
コード例 #3
0
        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());
        }