/// <summary> /// 重新显示状态 /// </summary> public virtual void Redisplay() { this.gameObject.SetActive(true); //设置模态窗体调用(必须是弹出窗体) if (UI_MaskMgr != null) { UI_MaskMgr.SetMaskWindow(this.gameObject, UIForm_LucencyType); } else { UI_MaskMgr = GameMainProgram.Instance.uiMaskMgr; UI_MaskMgr.SetMaskWindow(this.gameObject, UIForm_LucencyType); Debug.Log("UI未获取UI_MaskMgr,自动从主程序获取"); } }
/// <summary> /// 隐藏状态 /// </summary> public virtual void Hiding() { this.gameObject.SetActive(false); //取消模态窗体调用 if (UIForm_Type == UIFormType.PopUp) { if (UI_MaskMgr != null) { UI_MaskMgr.CancelMaskWindow(); } else { UI_MaskMgr = GameMainProgram.Instance.uiMaskMgr; UI_MaskMgr.CancelMaskWindow(); Debug.Log("UI未获取UI_MaskMgr,自动从主程序获取"); } } }