/// <summary> /// 关闭,不允许子类调用 /// </summary> void IUIBehaviour.Close(bool destroyed = true) { OnClose(); if (destroyed) { Destroy(gameObject); } mUiPanelLoader.Unload(); mUiPanelLoader = null; }
/// <summary> /// 关闭,不允许子类调用 /// </summary> void IUIBehaviour.Close(bool destroyed) { OnClose(); if (destroyed) { Destroy(gameObject); } mOnPanelClosed.InvokeGracefully(); mOnPanelClosed = null; mUiPanelLoader.Unload(); mUiPanelLoader = null; }
/// <summary> /// 关闭,不允许子类调用 /// </summary> void IUIPanel.Close(bool destroyed) { PanelInfo.UIData = mUIData; mOnClosed.InvokeGracefully(); mOnClosed = null; OnClose(); if (destroyed) { Destroy(gameObject); } mUiPanelLoader.Unload(); mUiPanelLoader = null; mUIData = null; mSubPanelInfos.ForEach(subPanelInfo => UIMgr.ClosePanel(subPanelInfo.PanelName)); mSubPanelInfos.Clear(); }
/// <summary> /// 关闭,不允许子类调用 /// </summary> void IUIView.Close(bool destroyed = true) { if (PanelInfo.IsNotNull()) { PanelInfo.UIData = mUIData; } mOnClosed.InvokeGracefully(); mOnClosed = null; OnClose(); if (destroyed) { Destroy(gameObject); } if (mOpenByUIMgr) { mUiPanelLoader.Unload(); mUiPanelLoader = null; } mSubPanelInfos.ForEach(subPanelInfo => UIMgr.ClosePanel(subPanelInfo.PanelName)); mSubPanelInfos.Clear(); }