/// <summary> /// 清理当前的面板 /// </summary> public void ClearNowPanel() { if (_nowView != null) { _nowView.Destroy(); } }
/// <summary> /// 关闭(当前打开的)所有窗口 /// </summary> public void CloseAll() { _needBlurViewSet.Clear(); int count = _nowWindows.Count; for (int i = 0; i < count; i++) { AView view = _nowWindows[i]; view.onDestroyHandler -= OnViewDestroy; view.Destroy(); } _nowWindows.RemoveRange(0, count); UpdateBlur(); }
/// <summary> /// 清理当前的舞台 /// </summary> /// <param name="isClearPanel">是否清理UIPanel</param> /// <param name="isCloseWindows">是否清理UIWin</param> public void ClearNowStage(bool isClearPanel = true, bool isCloseWindows = true) { if (_nowView != null) { _nowView.Destroy(); } if (isClearPanel) { UIPanelMgr.Ins.ClearNowPanel(); } if (isCloseWindows) { UIWinMgr.Ins.CloseAll(); } }
/// <summary> /// 关闭窗口 /// </summary> /// <param name="target">关闭对象</param> public void Close(AView target) { target.Destroy(); }