Beispiel #1
0
 public static UiMaskManager GetInstance()
 {
     if (_Instance == null)
     {
         _Instance = new GameObject("_UiMaskManager").AddComponent <UiMaskManager>();
     }
     return(_Instance);
 }
Beispiel #2
0
 /// <summary>
 /// 再显示状态
 /// </summary>
 public virtual void ReDisplay()
 {
     gameObject.SetActive(true);
     // 设置模态窗体调用(必须是弹出窗体)
     if (_CurrentUiType.UIForms_Type == UIFormsType.PopUp)
     {
         UiMaskManager.GetInstance().SetMaskForm(this.gameObject, _CurrentUiType.UIForms_LucencyType);
     }
 }
Beispiel #3
0
 /// <summary>
 /// 隐藏状态
 /// </summary>
 public virtual void Hiding()
 {
     gameObject.SetActive(false);
     // 设置模态窗体调用(必须是弹出窗体)
     if (_CurrentUiType.UIForms_Type == UIFormsType.PopUp)
     {
         UiMaskManager.GetInstance().CancelMaskForm(this.gameObject);
     }
 }