Exemplo n.º 1
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());
        }
Exemplo n.º 2
0
        public static IEnumerator Initialize()
        {
            if (initComplete)
            {
                yield break;
            }
            SMaster sMaster = new SMaster();

            yield return(AppManager.CurrentScene.StartCoroutine(sMaster.RequestVersions()));

            Global.versions = sMaster.versions;
            CLoadingDialog.ToShow();
            yield return(AppManager.CurrentScene.StartCoroutine(LoadAssetbundle(App.Util.Global.versions)));

            CLoadingDialog.ToClose();
            initComplete = true;
        }
Exemplo n.º 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());
        }