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