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