/// <summary> /// 显示状态 /// </summary> public virtual void Display() { this.gameObject.SetActive(true); //设置模态窗体调用(必须是弹出窗体) if (_CurrentUIType.UIForms_Type == UIFormType.PopUp) { UIMaskMgr.GetInstance().SetMaskWindow(this.gameObject, _CurrentUIType.UIForm_LucencyType); } }
/// <summary> /// 隐藏状态 /// </summary> public virtual void Hiding() { UnRegistEvent(); this.gameObject.SetActive(false); //取消模态窗体调用 if (_CurrentUIType.UIForms_Type == UIFormType.PopUp) { UIMaskMgr.GetInstance().CancelMaskWindow(); } }
/// <summary> /// 显示状态 /// </summary> public virtual void Display() { RegistEvent(); ShowTween(); //设置模态窗体调用(必须是弹出窗体) if (_CurrentUIType.UIForms_Type == UIFormType.PopUp) { UIMaskMgr.GetInstance().SetMaskWindow(this.gameObject, _CurrentUIType.UIForm_LucencyType); } }