Пример #1
0
 private void CheckUnderLayerWindowHide(BaseWindow baseWindow)
 {
     if (gameObject != null && gameObject.activeSelf && mIsShow)
     {
         mOverWindow = baseWindow;
         gameObject.SetActive(false);
     }
 }
Пример #2
0
 private void CheckUnderLayerWindowShow(BaseWindow baseWindow)
 {
     if (gameObject != null && gameObject.activeSelf == false && mIsShow && mOverWindow == baseWindow)
     {
         mOverWindow = null;
         BeforeOnUnderLayerWindowShow();
         gameObject.SetActive(true);
         OnUnderLayerWindowShow();
     }
 }
Пример #3
0
        protected override void InternalOnViewShow()
        {
            base.InternalOnViewShow();
            // sUIManager.OnLayerShow(mViewParam.ParentLayer, this);
            sUIManager.OnLayerShow(this);
            if (CheckHideUnderLayer())
            {
                mUnderLayerWindowList = sUIManager.GetUnderNormalLayerWindows(mViewParam.ParentLayer);
                for (int i = 0, count = mUnderLayerWindowList.Count; i < count; i++)
                {
                    BaseWindow baseWindow = mUnderLayerWindowList[i];

                    baseWindow.CheckUnderLayerWindowHide(this);
                }
            }
        }
Пример #4
0
        protected override void InternalOnViewHide()
        {
            base.InternalOnViewHide();

            sUIManager.OnLayerHide(mViewParam.ParentLayer, this);

            if (CheckHideUnderLayer())
            {
                if (mUnderLayerWindowList == null)
                {
                    return;
                }

                for (int i = 0, count = mUnderLayerWindowList.Count; i < count; i++)
                {
                    BaseWindow baseWindow = mUnderLayerWindowList[i];

                    baseWindow.CheckUnderLayerWindowShow(this);
                }

                mUnderLayerWindowList.Clear();
            }
        }