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