public override void OnEnter() { TsLog.Log("====== {0}.OnEnter", new object[] { base.GetType().FullName }); if (TsPlatform.IsLowSystemMemory) { TsSceneSwitcher.Instance.DeleteScene(TsSceneSwitcher.ESceneType.WorldScene); TsSceneSwitcher.Instance.DeleteScene(TsSceneSwitcher.ESceneType.SoldierBatchScene); Holder.ClearStackItem(Option.IndependentFromStageStackName, false); base.StartTaskSerial(CommonTasks.LoadEmptyMainScene()); base.StartTaskSerial(CommonTasks.MemoryCleaning(true, 8)); } Scene.ChangeSceneType(this.SceneType()); base.StartTaskSerial(CommonTasks.InitializeChangeScene()); base.StartTaskSerial(this._StageProcess()); base.StartTaskSerial(CommonTasks.DownloadAsset(string.Format("Effect/CharEffect/cameramove{0}{1}", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset), new PostProcPerItem(this._funcDownloadedCameraTarget), null, true)); base.StartTaskSerial(this._StageAfterBattleMapLoadProcess()); base.StartTaskSerial(CommonTasks.DownloadAsset(string.Format("Effect/CharEffect/fx_battledamage{0}{1}", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset), new PostProcPerItem(this._funcDownloadedDamage), null, true)); base.StartTaskSerial(CommonTasks.DownloadAsset(string.Format("Effect/Instant/fx_result{0}{1}", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset), new PostProcPerItem(this._funcDownloadedResultEffect), null, true)); base.StartTaskSerial(CommonTasks.DownloadAsset(string.Format("Effect/Instant/fx_battlearrow{0}{1}", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset), new PostProcPerItem(this._fundBattleArrowDownload), null, true)); base.StartTaskSerial(CommonTasks.DownloadAsset(string.Format("Effect/Instant/fx_skill_directing{0}{1}", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset), new PostProcPerItem(this._fundBattleSkillDirectingDownload), null, true)); base.StartTaskSerial(CommonTasks.DownloadAsset(string.Format("Effect/Instant/fx_battle_fatality{0}{1}", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset), new PostProcPerItem(this._fundBattleSkillRivalDirectingDownload), null, true)); base.StartTaskSerial(CommonTasks.DownloadAsset(string.Format("Effect/Instant/fx_angergauge{0}{1}", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset), new PostProcPerItem(this._fundBattleControlAngergaugeDownload), null, true)); base.StartTaskSerial(this.DownLoadColosseumEffect()); base.StartTaskSerial(CommonTasks.MemoryCleaning(true, 8)); base.StartTaskSerial(CommonTasks.LoadEnvironment(true)); NrLoadPageScreen.IncreaseProgress(1f); NrLoadPageScreen.IncreaseProgress(1f); base.StartTaskSerial(CommonTasks.FinalizeChangeScene(true)); base.StartTaskSerial(this._StageStartBattle()); base.StartTaskPararell(this._UpdateBattleTemporal()); }
public override void OnEnter() { TsLog.Log("====== {0}.OnEnter", new object[] { base.GetType().FullName }); Scene.ChangeSceneType(this.SceneType()); this._BeforeMapLoad(); base.StartTaskSerial(CommonTasks.InitializeChangeScene()); if (Scene.PreScene != Scene.Type.BATTLE) { base.StartTaskSerial(CommonTasks.BGMExceptMuteAudio(true)); } base.StartTaskSerial(CommonTasks.ClearAudioStack()); if (StageWorld.m_bReloadMap) { base.StartTaskSerial(CommonTasks.LoadEmptyMainScene()); base.StartTaskSerial(CommonTasks.MemoryCleaning(true, 8)); } if (this.m_bLoadMap) { base.StartTaskSerial(this._mapLoader.StartLoadMap()); } base.StartTaskSerial(this._StageProcess()); base.StartTaskSerial(CommonTasks.EnableCharacterLoad()); base.StartTaskSerial(EventTriggerMapManager.Instance.RunStandByWork()); base.StartTaskSerial(CommonTasks.LoadEnvironment(true)); if (Scene.PreScene != Scene.Type.BATTLE) { base.StartTaskSerial(CommonTasks.MuteAudio(false)); } base.StartTaskSerial(this.BlueStacksCheck()); base.StartTaskSerial(CommonTasks.FinalizeChangeScene(true)); if (TsPlatform.IsMobile && !TsPlatform.IsEditor) { base.StartTaskSerial(this.OpenMobileNotice()); } base.StartTaskSerial(EventTriggerMapManager.Instance.RunPostLoadWork()); NrLoadPageScreen.IncreaseProgress(2f); base.StartTaskSerial(this.EndWorldLoad()); base.StartTaskPararell(this._ProcessAfterWorldLoadComplete()); base.StartTaskPararell(CommonTasks.WaitGoToBattleWorld()); }