/// <summary> /// 重新显示状态 /// </summary> public virtual void Redisplay() { gameObject.SetActive(true); //设置模态窗体调用(必须是弹出窗体) if (CurrentUiType.UiWindType == UiWindType.PopUp) { UIMaskMgr.Instance().SetMaskWindow(gameObject, CurrentUiType.UiTransparencyType); } }
/// <summary> /// 隐藏状态 /// </summary> public virtual void Hiding() { gameObject.SetActive(false); //取消模态窗体调用 if (CurrentUiType.UiWindType == UiWindType.PopUp) { UIMaskMgr.Instance().CancelMaskWindow(); } }