public void Close(UGUI_TYPE uiType, bool release = false)
    {
        IWindowBase uiwindow = GetUI(uiType);

        if (uiwindow == null)
        {
            return;
        }

        uiwindow.Close();
        if (release)
        {
            if (uiwindow.Is3D())
            {
            }
            else
            {
                m_root2D.Release(uiwindow);
            }
            m_loadedWindow.Remove(uiType);
        }

        if (!uiwindow.Is3D())
        {
            if (!CheckMenuLayerVisiable()) //如果没有全屏 的系统了,就打开mainUI
            {
                SetMainUIActive(true);
            }
        }

        if (m_ParentUI.Count > 0)
        {
            ParentUIStruct parentUI = m_ParentUI.Peek();
            if (parentUI.ChildUI == uiType)
            {
                Open(parentUI.ParentUI); //就是一个固定返回界面,一种父子的关系,尽量少用
                m_ParentUI.Pop();
            }
        }
    }
    public void ReleaseWindow(UGUI_TYPE uiType)
    {
        IWindowBase uiwindow = GetUI(uiType);

        if (uiwindow == null)
        {
            return;
        }
        if (uiwindow.Is3D())
        {
        }
        else
        {
            m_root2D.Release(uiwindow);
        }
        m_loadedWindow.Remove(uiType);
    }