コード例 #1
0
 /// <summary>
 /// 关闭,不允许子类调用
 /// </summary>
 void IUIBehaviour.Close(bool destroyed = true)
 {
     OnClose();
     if (destroyed)
     {
         Destroy(gameObject);
     }
     mUiPanelLoader.Unload();
     mUiPanelLoader = null;
 }
コード例 #2
0
ファイル: UIPanel.cs プロジェクト: zi-guang/QFramework
        /// <summary>
        /// 关闭,不允许子类调用
        /// </summary>
        void IUIBehaviour.Close(bool destroyed)
        {
            OnClose();
            if (destroyed)
            {
                Destroy(gameObject);
            }

            mOnPanelClosed.InvokeGracefully();
            mOnPanelClosed = null;
            mUiPanelLoader.Unload();
            mUiPanelLoader = null;
        }
コード例 #3
0
        /// <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();
        }
コード例 #4
0
        /// <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();
        }