public override void ClosePanelNotEndShow(bool animation = true) { base.ClosePanelNotEndShow(animation); if (!string.IsNullOrEmpty(this._Url)) { CMDWebWindow.DeleteWebView(); } }
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); }