/// <summary> /// 隐藏状态 /// </summary> public virtual void Hiding() { this.gameObject.SetActive(false); //取消模态窗体调用 if (_CurrentUIType.UIForms_Type == UIFormType.PopUp) { UIMaskMgr.GetInstance().CancelMaskWindow(); } }
/// <summary> /// 重新显示状态 /// </summary> public virtual void Redisplay() { if (!this.gameObject.activeSelf) { this.gameObject.SetActive(true); } //设置模态窗体调用(必须是弹出窗体) if (_CurrentUIType.UIForms_Type == UIFormType.PopUp) { UIMaskMgr.GetInstance().SetMaskWindow(this.gameObject, _CurrentUIType.UIForm_LucencyType); } }
/// <summary> /// 显示并且出现在特定位置 /// </summary> public virtual void Display(Vector3 _pos) { if (!this.gameObject.activeSelf) { this.gameObject.SetActive(true); } transform.position = _pos; //设置模态窗体调用(必须是弹出窗体) if (_CurrentUIType.UIForms_Type == UIFormType.PopUp) { UIMaskMgr.GetInstance().SetMaskWindow(this.gameObject, _CurrentUIType.UIForm_LucencyType); } }