Ejemplo n.º 1
0
    /// <summary>
    /// 检查是否隐藏UI
    /// </summary>
    void CheckHidenWin()
    {
        bool isHiden = false;

        for (int i = m_IdPosList.Count - 1; i >= 0; i--)
        {
            int id = m_IdPosList[i];
            if (m_UIList.ContainsKey(id))
            {
                WindowBase winbs = m_UIList[id];
                if (winbs == null)
                {
                    continue;
                }
                T_UIConfig config = winbs.F_GetUIConfig();
                if (config.UI_Type == T_UIConfig.UI_TYPE.WIN)
                {
                    if (isHiden == true)
                    {
                        TransformUtil.ChangeLayer(winbs.transform, 0, 5);
                    }
                    else
                    {
                        TransformUtil.ChangeLayer(winbs.transform, 5, 0);
                    }

                    if (config.ShowMask == (int)MaskType.BlurTexture || config.ShowMask == (int)MaskType.HidenUnderUI)
                    {
                        isHiden = true;
                    }
                }
            }
        }
    }