Example #1
0
 //隐藏窗体
 public virtual void Hide()
 {
     this.gameObject.SetActive(false);
     //只有模态窗体类型能进行遮罩操作
     if (UiType.m_UIFormType == UIFormType.PopUp)
     {
         UIMeskMgr.GetInstance().CancelMesk();
     }
 }
Example #2
0
 //重新显示
 public virtual void RedisPlay()
 {
     this.gameObject.SetActive(true);
     //只有模态窗体类型能进行遮罩操作
     if (UiType.m_UIFormType == UIFormType.PopUp)
     {
         UIMeskMgr.GetInstance().ShowMesk(gameObject, UiType.m_UIFormLucency);
     }
 }
Example #3
0
        public static UIMeskMgr GetInstance()
        {
            if (_instance == null)
            {
                _instance = new GameObject("_UIMeskMgr").AddComponent <UIMeskMgr>();
            }

            return(_instance);
        }