Пример #1
0
 /// <summary>
 /// 重新显示状态
 /// </summary>
 public virtual void redisplay()
 {
     this.gameObject.SetActive(true);
     //设置模态窗体调用(必须是弹出窗体)
     if (currentUIType.uiShowType == UIShowType.Pop)
     {
         MaskManager.getInstance().setMask(this.gameObject, currentUIType.uiTransparentType);
     }
 }
Пример #2
0
 //得到实例
 public static MaskManager getInstance()
 {
     if (instance == null)
     {
         Debug.Log("maskmanager");
         instance = new GameObject("UIMaskManager").AddComponent <MaskManager>();
     }
     return(instance);
 }
Пример #3
0
 /// <summary>
 /// 隐藏状态
 /// </summary>
 public virtual void hiding()
 {
     this.gameObject.SetActive(false);
     //取消模态窗体调用
     if (currentUIType.uiShowType == UIShowType.Pop)
     {
         MaskManager.getInstance().cancelMask();
     }
 }