Exemplo n.º 1
0
 /// <summary>
 /// 清理当前的面板
 /// </summary>
 public void ClearNowPanel()
 {
     if (_nowView != null)
     {
         _nowView.Destroy();
     }
 }
Exemplo n.º 2
0
        /// <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();
        }
Exemplo n.º 3
0
        /// <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();
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// 关闭窗口
 /// </summary>
 /// <param name="target">关闭对象</param>
 public void Close(AView target)
 {
     target.Destroy();
 }