From c1c6a647252cd19999942417242bd0e0ed8a77c7 Mon Sep 17 00:00:00 2001 From: Yuntao Hu <695250295@qq.com> Date: Thu, 15 Aug 2024 15:06:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E8=AF=A6=E6=83=85=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=20=E9=80=80=E5=87=BA=E5=8A=A8=E7=94=BB=E5=90=8C?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/ShowAllCharacter/UI_CultivateController.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UI_CultivateController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UI_CultivateController.cs index ba3088ddd2e..a3d26adf783 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UI_CultivateController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UI_CultivateController.cs @@ -391,7 +391,10 @@ public class UI_CultivateController : UIWindow //} private void OnButton_BackClick() { - //UIManager.Instance.CloseWindow(UINameConst.UI_Cultivate); + #region 释放预加载 + ClosePreloadChildUI(); + #endregion + CloseWindow(); // UIWindow uIWindow= UIManager.Instance.PopWindow(); // await UIManager.AnimSwitchWindow(this,UIWindowCloseType.HideAndDestroy,uIWindow,null); @@ -402,7 +405,7 @@ public class UI_CultivateController : UIWindow UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_MainPanel); } /// - /// 关闭预加载的子UI + /// 关闭预加载的子UI,由于需要保证动画同步,请与界面CloseWindow同时调用 /// void ClosePreloadChildUI() { @@ -532,10 +535,6 @@ public class UI_CultivateController : UIWindow { base.OnRelease(); - #region 释放预加载 - ClosePreloadChildUI(); - #endregion - UnRegisterEvent(); }