private void OnPushedGardenButton() { FarmCameraControlForCMD.ClearRefCT(); FarmCameraControlForCMD.On(); GUIMain.DestroyAllDialog(null); GUIMain.ShowCommonDialog(null, "CMD_DigiGarden", null); }
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); }
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(); }