Esempio n. 1
0
 //得到实例
 public static UIMaskMgr GetInstance()
 {
     if (_Instance == null)
     {
         _Instance = new GameObject("_UIMaskMgr").AddComponent <UIMaskMgr>();
     }
     return(_Instance);
 }
Esempio n. 2
0
 /// <summary>
 /// 隐藏状态
 /// </summary>
 public virtual void Hiding()
 {
     this.gameObject.SetActive(false);
     //取消模态窗体调用
     if (_CurrentUIType.UIForms_Type == UIFormType.PopUp)
     {
         UIMaskMgr.GetInstance().CancelMaskWindow();
     }
 }
Esempio n. 3
0
 /// <summary>
 /// 重新显示状态
 /// </summary>
 public virtual void Redisplay()
 {
     if (!this.gameObject.activeSelf)
     {
         this.gameObject.SetActive(true);
     }
     //设置模态窗体调用(必须是弹出窗体)
     if (_CurrentUIType.UIForms_Type == UIFormType.PopUp)
     {
         UIMaskMgr.GetInstance().SetMaskWindow(this.gameObject, _CurrentUIType.UIForm_LucencyType);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// 显示并且出现在特定位置
 /// </summary>
 public virtual void Display(Vector3 _pos)
 {
     if (!this.gameObject.activeSelf)
     {
         this.gameObject.SetActive(true);
     }
     transform.position = _pos;
     //设置模态窗体调用(必须是弹出窗体)
     if (_CurrentUIType.UIForms_Type == UIFormType.PopUp)
     {
         UIMaskMgr.GetInstance().SetMaskWindow(this.gameObject, _CurrentUIType.UIForm_LucencyType);
     }
 }