void ChangeState(State state) { this.CurrentState = state; switch (state) { case State.Start: buttonDownload.SetActive(true); loadingBarRoot.SetActive(false); textMain.text = ""; textCount.text = ""; StartLoadEngine(); break; case State.Downloding: buttonDownload.SetActive(false); StartCoroutine(CoUpdateLoading()); break; case State.DownlodFinished: if (isOpenOnBoot) { this.Close(); title.Open(); } else { buttonDownload.SetActive(false); loadingBarRoot.SetActive(false); textMain.text = LanguageSystemText.LocalizeText(SystemText.DownloadFinished); textCount.text = ""; } break; } }
/// IEnumerator CoUpdate() { if (fadeTextureStream) { fadeTextureStream.gameObject.SetActive(true); fadeTextureStream.Play(); while (fadeTextureStream.IsPlaying) { yield return(0); } } if (isWaitBoot) { while (Engine.IsWaitBootLoading) { yield return(0); } } this.Close(); if (isWaitDownLoad && loadWait != null) { loadWait.OpenOnBoot(); } else { title.Open(); } }
/// IEnumerator CoUpdate() { if (fadeTextureStream) { fadeTextureStream.gameObject.SetActive(true); fadeTextureStream.Play(); while (fadeTextureStream.IsPlaying) { yield return(0); } } this.Close(); if (isWaitDownLoad && loadWait != null) { loadWait.OpenOnBoot(); } else { if (Application.loadedLevelName == "Story1") { // Debug.Log("Story1"); title.Open(); } else { //Debug.Log("Story2"); maingame.Open(); maingame.OpenStartGame(); } } }
protected virtual void OnFinished() { switch (DownloadType) { case Type.Boot: this.Close(); title.Open(); break; case Type.Default: buttonDownload.SetActive(false); loadingBarRoot.SetActive(false); textMain.text = LanguageSystemText.LocalizeText(SystemText.DownloadFinished); textCount.text = ""; break; case Type.ChapterDownload: this.Close(); break; } }
//更新中 void Update() { if (!isInit) { return; } if (LegacyUiSystemUi.GetInstance()) { if (Engine.IsLoading) { LegacyUiSystemUi.GetInstance().StartIndicator(this); } else { LegacyUiSystemUi.GetInstance().StopIndicator(this); } } if (SystemUi.GetInstance()) { if (Engine.IsLoading) { SystemUi.GetInstance().StartIndicator(this); } else { SystemUi.GetInstance().StopIndicator(this); } } if (Engine.IsEndScenario) { Close(); if (Engine.IsSceneGallery) { //回想シーン終了したのでギャラリーに gallery.Open(); } else { //シナリオ終了したのでタイトルへ title.Open(this); } } }
/// IEnumerator CoUpdate() { #if UNITY_5_3_OR_NEWER if (isWaitSplashScreen) { while (!WrapperUnityVersion.IsFinishedSplashScreen()) { yield return(null); } } #endif //BGMなどを鳴らすために追加 Open(); if (fadeTextureStream) { fadeTextureStream.gameObject.SetActive(true); fadeTextureStream.Play(); while (fadeTextureStream.IsPlaying) { yield return(null); } } if (isWaitBoot) { while (Engine.IsWaitBootLoading) { yield return(null); } } this.Close(); if (isWaitDownLoad && loadWait != null) { loadWait.OpenOnBoot(); } else { title.Open(); } }
//タイトルに戻る public void OnTapBackTitle() { Engine.EndScenario(); this.Close(); title.Open(); }