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 override void ClosePanel(bool animation = true) { base.ClosePanel(animation); if (PartsMenu.instance != null) { PartsMenu.instance.Active(true); } if (this.isMute) { SoundMng.Instance().VolumeBGM = this.defaultBgmVolume; this.isMute = false; } if (!string.IsNullOrEmpty(this._Url)) { CMDWebWindow.DeleteWebView(); } CMDWebWindow.instance = null; }