角色详情界面 退出动画同步
parent
65fc2bdc60
commit
c1c6a64725
|
|
@ -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);
|
||||
}
|
||||
/// <summary>
|
||||
/// 关闭预加载的子UI
|
||||
/// 关闭预加载的子UI,由于需要保证动画同步,请与界面CloseWindow同时调用
|
||||
/// </summary>
|
||||
void ClosePreloadChildUI()
|
||||
{
|
||||
|
|
@ -532,10 +535,6 @@ public class UI_CultivateController : UIWindow
|
|||
{
|
||||
base.OnRelease();
|
||||
|
||||
#region 释放预加载
|
||||
ClosePreloadChildUI();
|
||||
#endregion
|
||||
|
||||
UnRegisterEvent();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue