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