private void TutorialBegginerClear() { if (!this.IsValidFocusType(CMD_Mission.MissionType.Beginner)) { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = "second_tutorial_mission_beginner"; if (CMD_Mission.< > f__mg$cache0 == null) { CMD_Mission.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartSecondTutorial(tutorialName, CMD_Mission.< > f__mg$cache0, delegate { GUICollider.EnableAllCollider("CMD_Mission"); }); } else { GUICollider.EnableAllCollider("CMD_Mission"); } } }
public static void StartQuestSelectTutorial() { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null == tutorialObserver) { GUICollider.EnableAllCollider("CMD_QuestSelect"); } else { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = "second_tutorial_quest"; if (QuestSecondTutorial.< > f__mg$cache0 == null) { QuestSecondTutorial.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } Action completed = QuestSecondTutorial.< > f__mg$cache0; if (QuestSecondTutorial.< > f__mg$cache1 == null) { QuestSecondTutorial.< > f__mg$cache1 = new Action(QuestSecondTutorial.InitializedQuestSelectTutorial); } tutorialObserver2.StartSecondTutorial(tutorialName, completed, QuestSecondTutorial.< > f__mg$cache1); } }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); if (CMD_PartyEdit.ModeType == CMD_PartyEdit.MODE_TYPE.EDIT) { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = "second_tutorial_partyedit"; if (CMD_PartyEdit.< > f__mg$cache0 == null) { CMD_PartyEdit.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartSecondTutorial(tutorialName, CMD_PartyEdit.< > f__mg$cache0, delegate { GUICollider.EnableAllCollider("CMD_PartyEdit_Collider"); }); } else { GUICollider.EnableAllCollider("CMD_PartyEdit_Collider"); } } else { GUICollider.EnableAllCollider("CMD_PartyEdit_Collider"); } }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null != tutorialObserver) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = "second_tutorial_facility_shop"; if (CMD_FacilityShop.< > f__mg$cache0 == null) { CMD_FacilityShop.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartSecondTutorial(tutorialName, CMD_FacilityShop.< > f__mg$cache0, delegate { GUICollider.EnableAllCollider("CMD_FacilityShop"); }); } else { GUICollider.EnableAllCollider("CMD_FacilityShop"); } }
public static void StartQuestTopTutorial(string worldAreaId) { string questTopTutorialFileName = QuestSecondTutorial.GetQuestTopTutorialFileName(worldAreaId); if (string.IsNullOrEmpty(questTopTutorialFileName)) { GUICollider.EnableAllCollider("CMD_QuestTOP"); } else { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null == tutorialObserver) { GUICollider.EnableAllCollider("CMD_QuestTOP"); } else { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = questTopTutorialFileName; if (QuestSecondTutorial.< > f__mg$cache2 == null) { QuestSecondTutorial.< > f__mg$cache2 = new Action(GUIMain.BarrierOFF); } Action completed = QuestSecondTutorial.< > f__mg$cache2; if (QuestSecondTutorial.< > f__mg$cache3 == null) { QuestSecondTutorial.< > f__mg$cache3 = new Action(QuestSecondTutorial.InitializedQuestTopTutorial); } tutorialObserver2.StartSecondTutorial(tutorialName, completed, QuestSecondTutorial.< > f__mg$cache3); } } }
protected override void WindowOpened() { base.WindowOpened(); if (CMD_FarewellListRun.Mode == CMD_FarewellListRun.MODE.SHOW) { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = "second_tutorial_house"; if (CMD_FarewellListRun.< > f__mg$cache0 == null) { CMD_FarewellListRun.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartSecondTutorial(tutorialName, CMD_FarewellListRun.< > f__mg$cache0, delegate { GUICollider.EnableAllCollider("CMD_FarewellListRun"); }); } else { GUICollider.EnableAllCollider("CMD_FarewellListRun"); } } else { GUICollider.EnableAllCollider("CMD_FarewellListRun"); } }
public void Die() { if (GameObject.Find("TutorialPanel") != null) { TutorialObserver to = GameObject.Find("TutorialPanel").GetComponent <TutorialObserver> (); to.InitiateFlagCall(dieIndex); } }
private void WaitDownloadCheck() { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null != tutorialObserver) { tutorialObserver.DownloaddAssetBundleLevelIndex++; } }
private bool IsTutorial() { if (this.tutorialObserver == null) { this.tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); return(this.tutorialObserver != null && this.tutorialObserver.isTutorial); } return(this.tutorialObserver.isTutorial); }
private void WaitDownload() { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (!this.controlToGame.IsBackgroundDownload) { this.WaitDefaultDownload(tutorialObserver); } else { this.WaitBackgroundDownload(tutorialObserver); } }
private void TutorialAnyTime(string tutorialName) { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null != tutorialObserver) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; if (CMD.< > f__mg$cache0 == null) { CMD.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartHelp(tutorialName, CMD.< > f__mg$cache0); } }
public override void FinishTutorial(GameObject observerGameObject) { this.tutorialCommandAction = null; this.scriptEngine = null; UnityEngine.Object.Destroy(this.tutorialUI.gameObject); this.tutorialUI = null; UnityEngine.Object.Destroy(observerGameObject.GetComponent <TutorialControlToGame>()); GUIManager.ExtBackKeyReady = true; RestrictionInput.isDisableBackKeySetting = false; if (this.actionFinish != null) { TutorialObserver component = observerGameObject.GetComponent <TutorialObserver>(); component.StartCoroutine(this.actionFinish(this)); } }
private void StartBackgroundDownload() { if (this.controlToGame.IsBackgroundDownload) { base.ResumeScript(); return; } TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); string assetBundleLevel = tutorialObserver.GetAssetBundleLevel(); if (0 < AssetDataMng.Instance().GetDownloadAssetBundleCount(assetBundleLevel)) { this.controlToGame.StartBackgroundDownload(assetBundleLevel, null, 1); } base.ResumeScript(); }
private void WaitDefaultDownload(TutorialObserver tutorialObserver) { string level = tutorialObserver.GetAssetBundleLevel(); if (0 < AssetDataMng.Instance().GetDownloadAssetBundleCount(level)) { this.tutorialUI.Fade.StartFade(TutorialFade.FadeType.BLACK, false, 0.5f, delegate { this.controlToGame.StartDownload(level, new Action(this.ResumeScript)); }); } else { base.ResumeScript(); } tutorialObserver.DownloaddAssetBundleLevelIndex++; }
protected override void WindowOpened() { base.WindowOpened(); base.StopAllCoroutines(); if (null != ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification) { ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification.StopGetHistoryIdList(); } SoundMng.Instance().StopBGM(0.5f, null); GUIMain.ResetBGM(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { UnityEngine.Object.Destroy(tutorialObserver.gameObject); } TutorialUI tutorialUI = UnityEngine.Object.FindObjectOfType <TutorialUI>(); if (tutorialUI != null) { UnityEngine.Object.Destroy(tutorialUI.gameObject); } AppCoroutine appCoroutine = UnityEngine.Object.FindObjectOfType <AppCoroutine>(); if (appCoroutine != null) { UnityEngine.Object.Destroy(appCoroutine.gameObject); } FarmCameraControlForCMD.ClearRefCT(); Resources.UnloadUnusedAssets(); FarmCameraControlForCMD.Off(); GUIMain.DestroyAllDialog(this); GUICollider.InitAllCollider(); GUIMain.BarrierReset(); Singleton <GUIManager> .Instance.UseOutsideTouchControl = false; FarmRoot farmRoot = UnityEngine.Object.FindObjectOfType <FarmRoot>(); if (farmRoot != null) { UnityEngine.Object.Destroy(farmRoot.gameObject); } GUIFadeControll.StartFadeIn(1f); CMDWebWindow.DeleteWebView(); GUIMain.ReqScreen("UIMaintenance", string.Empty); }
private void WaitBackgroundDownload(TutorialObserver tutorialObserver) { if (AssetBundleMng.Instance().IsStopDownload()) { AssetBundleMng.Instance().RestartDownload(); } if (AssetDataMng.Instance().IsAssetBundleDownloading()) { this.tutorialUI.Fade.StartFade(TutorialFade.FadeType.BLACK, false, 0.5f, delegate { this.controlToGame.WaitBackgroundDownload(new Action(base.ResumeScript)); }); } else { base.ResumeScript(); } tutorialObserver.DownloaddAssetBundleLevelIndex++; }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { GUIMain.BarrierON(null); tutorialObserver.StartSecondTutorial("second_tutorial_digichat", new Action(this.OnFinishTutorial), delegate { GUICollider.EnableAllCollider("CMD_ChatTOP"); }); } else { GUICollider.EnableAllCollider("CMD_ChatTOP"); } }
public static void Start(string tutorialName, Action callback = null) { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; if (ChipTutoial.< > f__mg$cache0 == null) { ChipTutoial.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartSecondTutorial(tutorialName, ChipTutoial.< > f__mg$cache0, callback); } else if (callback != null) { callback(); } }
public void Start() { if (Instance) { Destroy(gameObject); } else { Instance = this; DontDestroyOnLoad(gameObject); } buttonContinue = GameObject.Find("Canvas/PanelTutorial/ButtonContinue"); tutorialPanels.Add(GameObject.Find("Canvas/PanelTutorial/PanelMovePlatform")); tutorialPanels.Add(GameObject.Find("Canvas/PanelTutorial/PanelBall")); tutorialPanels.Add(GameObject.Find("Canvas/PanelTutorial/PanelBrick0")); tutorialPanels.Add(GameObject.Find("Canvas/PanelTutorial/PanelBrick1")); tutorialPanels.Add(GameObject.Find("Canvas/PanelTutorial/PanelBrick2")); tutorialPanels.Add(GameObject.Find("Canvas/PanelTutorial/PanelBallDeath")); tutorialPanels.Add(GameObject.Find("Canvas/PanelTutorial/PanelPauseGame")); }
private void WaitDownloadCheck() { bool flag = false; TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null != tutorialObserver) { string assetBundleLevel = tutorialObserver.GetAssetBundleLevel(); if (!string.IsNullOrEmpty(assetBundleLevel)) { AssetDataMng assetDataMng = AssetDataMng.Instance(); if (this.controlToGame.IsBackgroundDownload || (assetDataMng.IsInitializedAssetBundle() && 0 < assetDataMng.GetDownloadAssetBundleCount(assetBundleLevel))) { this.tutorialUI.Fade.StartFade(TutorialFade.FadeType.BLACK, true, 0.5f, new Action(this.SetDownloadScene)); flag = true; } } } if (!flag) { base.ResumeScript(); } }
protected override void WindowOpened() { base.WindowOpened(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null != tutorialObserver) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = "second_tutorial_succession"; if (CMD_Succession.< > f__mg$cache0 == null) { CMD_Succession.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartSecondTutorial(tutorialName, CMD_Succession.< > f__mg$cache0, delegate { GUICollider.EnableAllCollider("CMD_Succession"); }); } else { GUICollider.EnableAllCollider("CMD_Succession"); } }
private bool CheckFirstTutorial() { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null != tutorialObserver) { UnityEngine.Object.Destroy(tutorialObserver); } GameObject original = AssetDataMng.Instance().LoadObject("Tutorial/TutorialObserver", null, true) as GameObject; GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(original); gameObject.transform.localScale = Vector3.one; gameObject.transform.localPosition = Vector3.zero; gameObject.transform.localRotation = Quaternion.identity; tutorialObserver = gameObject.GetComponent <TutorialObserver>(); Resources.UnloadUnusedAssets(); bool flag = "0" == DataMng.Instance().RespDataCM_Login.tutorialStatus.endFlg; if (flag) { tutorialObserver.StartFirstTutorial(DataMng.Instance().RespDataCM_Login.tutorialStatus); } return(flag); }
protected override void ShowSecondTutorial() { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = "second_tutorial_laboratory"; if (CMD_Laboratory.< > f__mg$cache0 == null) { CMD_Laboratory.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartSecondTutorial(tutorialName, CMD_Laboratory.< > f__mg$cache0, delegate { GUICollider.EnableAllCollider("CMD_Laboratory"); }); } else { GUICollider.EnableAllCollider("CMD_Laboratory"); } base.SetTutorialAnyTime("anytime_second_tutorial_laboratory"); }
protected virtual IEnumerator StartEvent() { yield return(base.StartCoroutine(this.CreateHomeData())); RestrictionInput.DeleteDisplayObject(); TipsLoading.Instance.StopTipsLoad(true); Loading.Invisible(); if (!GUIScreenHome.isManualScreenFadeIn) { yield return(base.StartCoroutine(this.StartScreenFadeIn(null))); } this.isFinishedStartLoading = true; bool isPenaltyLevelTwo = false; yield return(base.StartCoroutine(this.PenaltyCheck(delegate { GUIMain.BackToTOP("UIStartupCaution", 0.8f, 0.8f); isPenaltyLevelTwo = true; }))); if (isPenaltyLevelTwo) { yield break; } GUIManager.ResetTouchingCount(); yield return(base.StartCoroutine(this.ShowLoginBonusCampaign())); yield return(base.StartCoroutine(this.ShowLoginBonusNormal())); GameWebAPI.RespDataUS_GetPlayerInfo playerInfo = DataMng.Instance().RespDataUS_PlayerInfo; GameWebAPI.RespDataCM_LoginBonus loginBonus = DataMng.Instance().RespDataCM_LoginBonus; if (loginBonus != null && loginBonus.loginBonus != null && loginBonus.loginBonus.normal != null && loginBonus.loginBonus.normal.Length > 0 && playerInfo != null && playerInfo.playerInfo != null && playerInfo.playerInfo.loginCount == 3) { bool isReviewDialogClose = false; Action onFinishedAction = delegate() { isReviewDialogClose = true; }; LeadReview.ShowReviewConfirm(LeadReview.MessageType.TOTAL_LOGIN_COUNT_3DAYS, onFinishedAction, false); while (!isReviewDialogClose) { yield return(null); } } yield return(base.StartCoroutine(this.CheckRecoverBattle())); Loading.Display(Loading.LoadingType.LARGE, false); while (!AssetDataCacheMng.Instance().IsCacheAllReadyType(AssetDataCacheMng.CACHE_TYPE.CHARA_PARTY)) { yield return(null); } Loading.Invisible(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); yield return(base.StartCoroutine(tutorialObserver.StartGuidance(new Action <bool>(this.StartedGuidance)))); GUIFace.SetFacilityAlertIcon(); ClassSingleton <FaceMissionAccessor> .Instance.faceMission.SetParticleMissionIcon(); yield break; }
public static void BackToTOP(string guiName = "UIStartupCaution", float outSec = 0.8f, float inSec = 0.8f) { ServerDateTime.isUpdateServerDateTime = false; GUIMain.self.StopAllCoroutines(); if (null != ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification) { ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification.StopGetHistoryIdList(); } ClassSingleton <GUIMonsterIconList> .Instance.PushBackAllMonsterPrefab(); ClassSingleton <MonsterUserDataMng> .Instance.Initialize(); ClassSingleton <GUIMonsterIconList> .Instance.AllDelete(); GUIMain.DestroyAllDialog(null); GUIMain.onFadeBlackLoadScene = null; FarmSceneryCache.ClearCache(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null != tutorialObserver) { UnityEngine.Object.Destroy(tutorialObserver.gameObject); } TutorialUI tutorialUI = UnityEngine.Object.FindObjectOfType <TutorialUI>(); if (null != tutorialUI) { if ("GUI" == tutorialUI.gameObject.name) { UnityEngine.Object.Destroy(tutorialUI); string[] array = new string[] { "ROOT/Panel", "ROOT/HitIcon", "ROOT/HUD" }; foreach (string name in array) { GameObject gameObject = GameObject.Find(name); if (null != gameObject) { UnityEngine.Object.Destroy(gameObject); } } } else { UnityEngine.Object.Destroy(tutorialUI.gameObject); } } AppCoroutine appCoroutine = UnityEngine.Object.FindObjectOfType <AppCoroutine>(); if (null != appCoroutine) { UnityEngine.Object.Destroy(appCoroutine.gameObject); } GUIMain.BarrierReset(); Singleton <GUIManager> .Instance.UseOutsideTouchControl = false; FarmRoot instance = FarmRoot.Instance; if (null != instance) { InputControll input = instance.Input; if (null != input) { input.enabled = false; } } ClassSingleton <QuestData> .Instance.ClearWorldAreaMList(); FarmCameraControlForCMD.ClearRefCT(); GUICollider.DisableAllCollider("GUIMain"); SoundMng.Instance().StopBGM(0.5f, delegate(int n) { if (GUIMain.gUIScreen != guiName) { Action <int> action = delegate(int x) { GUIFadeControll.ActionRestart(); }; string guiName2 = guiName; Action <int> action_ = action; string aploadName_ = "Empty"; string loadGUIName_ = guiName2; string empty = string.Empty; if (GUIMain.< > f__mg$cache0 == null) { GUIMain.< > f__mg$cache0 = new Action <int>(GUIMain.actCallBackBackToTOP); } GUIFadeControll.SetLoadInfo(action_, aploadName_, loadGUIName_, empty, GUIMain.< > f__mg$cache0, false); GUIFadeControll.SetFadeInfo(outSec, 0f, inSec, 1f); GUIManager.LoadCommonGUI("Effect/FADE_W", GUIMain.self.gameObject); } }); GUIMain.nowBgm = string.Empty; Resources.UnloadUnusedAssets(); }
public IEnumerator RetryDownload() { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); int levelIndex = tutorialObserver.DownloaddAssetBundleLevelIndex; string[] assetNameList = tutorialObserver.assetNameList; AssetDataMng manager = AssetDataMng.Instance(); if (levelIndex > 0) { List <string> downloadList = new List <string>(); for (int j = 0; j <= levelIndex - 1; j++) { if (manager.GetDownloadAssetBundleCount(assetNameList[j]) > 0) { downloadList.Add(assetNameList[j]); } } string[] levels = downloadList.ToArray(); if (levels.Length > 0) { Loading.Invisible(); bool isEndChangeScene = false; this.controlToGame.ChangeScene(this.controlToGame.GetBlackSceneID(), delegate { isEndChangeScene = true; }, false, null); while (!isEndChangeScene) { yield return(null); } bool isEndStartFade = false; this.tutorialUI.Fade.StartFade(TutorialFade.FadeType.BLACK, false, 0.5f, delegate { isEndStartFade = true; }); while (!isEndStartFade) { yield return(null); } bool isEndDownload = false; for (int i = 0; i < levels.Length; i++) { if (0 < manager.GetDownloadAssetBundleCount(levels[i])) { isEndDownload = false; this.controlToGame.StartDownload(levels[i], delegate { isEndDownload = true; }); while (!isEndDownload) { yield return(null); } } } Loading.ResumeDisplay(); } } yield break; }