예제 #1
0
        private IEnumerator Start()
        {
            this.controllerImage.sprite = this.GetControllerSpriteForPlatform(this.platform);
            AsyncOperation loadOperation = UnityEngine.SceneManagement.SceneManager.LoadSceneAsync("Menu_Title");

            loadOperation.allowSceneActivation = false;
            bool showLanguageSelect = !this.CheckIsLanguageSet();

            if (showLanguageSelect && Platform.Current.ShowLanguageSelect)
            {
                yield return(base.StartCoroutine(this.ShowLanguageSelect()));

                while (!this.confirmedLanguage)
                {
                    yield return(null);
                }

                yield return(base.StartCoroutine(this.LanguageSettingDone()));
            }

            this.startManagerAnimator.SetBool("WillShowControllerNotice", false);
            this.startManagerAnimator.SetBool("WillShowQuote", true);

            StandaloneLoadingSpinner loadSpinner = UnityEngine.Object.Instantiate <StandaloneLoadingSpinner>(this.loadSpinnerPrefab);

            loadSpinner.Setup(null);
            loadOperation.allowSceneActivation = true;
            yield return(loadOperation);

            yield break;
        }
예제 #2
0
        private IEnumerator Start()
        {
            this.controllerImage.sprite = this.GetControllerSpriteForPlatform(this.platform);
            bool showLanguageSelect = !this.CheckIsLanguageSet();

            if (showLanguageSelect && Platform.Current.ShowLanguageSelect)
            {
                yield return(base.StartCoroutine(this.ShowLanguageSelect()));

                while (!this.confirmedLanguage)
                {
                    yield return(null);
                }

                yield return(base.StartCoroutine(this.LanguageSettingDone()));
            }

            this.startManagerAnimator.SetBool("WillShowControllerNotice", false);
            this.startManagerAnimator.SetBool("WillShowQuote", true);

            StandaloneLoadingSpinner loadSpinner = UnityEngine.Object.Instantiate <StandaloneLoadingSpinner>(this.loadSpinnerPrefab);

            loadSpinner.Setup(null);

            yield return(null);

            #region Mod Loading

            Logger.APILogger.Log("Main menu loading");

            GameObject obj = new GameObject();
            DontDestroyOnLoad(obj);

            // Preload reflection
            ReflectionHelper.PreloadCommonTypes();

            // NonBouncer does absolutely nothing, which makes it a good dummy to run the loader
            obj.AddComponent <NonBouncer>().StartCoroutine(ModLoader.LoadMods(obj));

            #endregion
        }