public void OnLevelWasLoaded(Int32 sceneNo) { Localization.CurrentLanguage = FF9StateSystem.Settings.CurrentLanguage; this.WorldHUDScene.gameObject.SetActive(false); this.FieldHUDScene.gameObject.SetActive(false); this.BattleHUDScene.gameObject.SetActive(false); this.MainMenuScene.gameObject.SetActive(false); this.ItemScene.gameObject.SetActive(false); this.AbilityScene.gameObject.SetActive(false); this.EquipScene.gameObject.SetActive(false); this.StatusScene.gameObject.SetActive(false); this.CardScene.gameObject.SetActive(false); this.ConfigScene.gameObject.SetActive(false); this.SaveLoadScene.gameObject.SetActive(false); this.CloudScene.gameObject.SetActive(false); this.PauseScene.gameObject.SetActive(false); this.ShopScene.gameObject.SetActive(false); this.NameSettingScene.gameObject.SetActive(false); this.PartySettingScene.gameObject.SetActive(false); this.TutorialScene.gameObject.SetActive(false); this.BattleResultScene.gameObject.SetActive(false); this.GameOverScene.gameObject.SetActive(false); this.TitleScene.gameObject.SetActive(false); this.QuadMistScene.gameObject.SetActive(false); this.ChocographScene.gameObject.SetActive(false); this.EndingScene.gameObject.SetActive(false); this.EndGameScene.gameObject.SetActive(false); this.MainMenuScene.SubMenuPanel.SetActive(false); ButtonGroupState.DisableAllGroup(true); ButtonGroupState.HelpEnabled = false; if (this.Dialogs != (UnityEngine.Object)null) { this.Dialogs.CloseAll(); } String loadedLevelName = Application.loadedLevelName; Boolean active = false; Boolean isEnable = false; this.UnityScene = UIManager.Scene.None; if (loadedLevelName == SceneDirector.FieldMapSceneName) { this.UnityScene = UIManager.Scene.Field; this.fieldCamera = GameObject.Find("FieldMap Root/FieldMap Camera").GetComponent <Camera>(); this.ChangeUIState(UIManager.UIState.FieldHUD); TimerUI.Init(); this.FieldHUDScene.Loading = true; active = true; } else if (loadedLevelName == SceneDirector.BattleMapSceneName) { this.UnityScene = UIManager.Scene.Battle; InitializeBattleCamera(); this.ChangeUIState(UIManager.UIState.BattleHUD); TimerUI.Init(); this.BattleHUDScene.Loading = true; active = true; } else if (loadedLevelName == SceneDirector.WorldMapSceneName) { this.UnityScene = UIManager.Scene.World; this.worldCamera = GameObject.Find("WorldMapRoot/WorldCamera").GetComponent <Camera>(); this.WorldHUDScene.Loading = true; active = true; } else if (loadedLevelName == "Title") { this.Booster.Initial(); PersistenSingleton <OverlayCanvas> .Instance.Restart(); this.UnityScene = UIManager.Scene.Title; this.ChangeUIState(UIManager.UIState.Title); } else if (loadedLevelName == "QuadMist") { this.UnityScene = UIManager.Scene.QuadMist; } else if (loadedLevelName == "UI") { this.UnityScene = UIManager.Scene.Pure; this.ChangeUIState(UIManager.UIState.FieldHUD); } else if (loadedLevelName == "FieldMapDebug") { this.UnityScene = UIManager.Scene.Field; isEnable = true; active = true; } else if (loadedLevelName == "BattleMapDebug") { this.UnityScene = UIManager.Scene.Battle; InitializeBattleCamera(); this.ChangeUIState(UIManager.UIState.BattleHUD); TimerUI.Init(); isEnable = true; active = true; } else if (loadedLevelName == "WorldMapDebug") { this.UnityScene = UIManager.Scene.World; this.worldCamera = GameObject.Find("WorldMapRoot/WorldCamera").GetComponent <Camera>(); isEnable = true; active = true; } else if (loadedLevelName == "EndGame") { this.UnityScene = UIManager.Scene.EndGame; } else if (loadedLevelName == "SwirlScene") { this.UnityScene = UIManager.Scene.None; } else if (loadedLevelName == "Ending") { this.UnityScene = UIManager.Scene.Ending; isEnable = false; active = false; } this.Booster.CloseBoosterPanelImmediately(); if (!FF9StateSystem.World.IsBeeScene) { PersistenSingleton <OverlayCanvas> .Instance.overlayBoosterUI.UpdateBoosterSize(); PersistenSingleton <OverlayCanvas> .Instance.overlayBoosterUI.boosterContainer.SetActive(active); this.SetPlayerControlEnable(isEnable, (Action)null); this.SetMenuControlEnable(false); } FF9StateSystem.Settings.SetFastForward(FF9StateSystem.Settings.IsFastForward); }