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(); }