示例#1
0
 //得到实例
 public static UIMaskMgr GetInstance()
 {
     if (_Instance == null)
     {
         _Instance = new GameObject("UIMaskMgr").AddComponent <UIMaskMgr>();
     }
     return(_Instance);
 }
示例#2
0
 /// <summary>
 /// 再显示状态
 /// </summary>
 public virtual void ReDisplay()
 {
     gameObject.SetActive(true);
     //设置模态窗体调用(必须是弹出窗体)
     if (_currentUIType.UIForm_Type == UIFormType.PopUp)
     {
         UIMaskMgr.GetInstance().SetMaskWindow(this.gameObject, _currentUIType.UIForm_LucencyType);
     }
 }
示例#3
0
 /// <summary>
 /// 隐藏状态
 /// </summary>
 public virtual void Hiding()
 {
     gameObject.SetActive(false);
     //取消模态窗体调用
     if (_currentUIType.UIForm_Type == UIFormType.PopUp)
     {
         UIMaskMgr.GetInstance().CancelMaskWindow();
     }
 }