Пример #1
0
    public CLASS_Panel DoShowHide_Panel_Force(ENUM_Panel_Name ePanel, bool bShow)
    {
        CUIPanelData pPanel = _mapPanelData[ePanel];

        if (pPanel == null)
        {
            Debug.LogWarning(ePanel + "이 없습니다.. 하이어라키를 확인해주세요");
            return(null);
        }
        pPanel.SetActive(bShow);

        return(pPanel.p_pPanel);
    }
Пример #2
0
    /// <summary>
    /// 주의) Panel의 Hide Animation 이벤트가 호출되지 않습니다.
    /// </summary>
    /// <param name="bAlwaysShowHide"></param>
    public void DoHideAllPanel(params ENUM_Panel_Name[] arrPanelName_IgnoreHide_IfShow)
    {
        List <CUIPanelData> listPanelDataAll = _mapPanelData.Values.ToList();

        for (int i = 0; i < listPanelDataAll.Count; i++)
        {
            CUIPanelData pUIPanelData = listPanelDataAll[i];
            if (arrPanelName_IgnoreHide_IfShow.Contains(pUIPanelData.p_ePanelName) == false)
            {
                pUIPanelData.SetActive(false);
            }
        }
    }
Пример #3
0
    public CLASS_Panel DoShowHide_Panel_IgnoreSortOrder(ENUM_Panel_Name ePanel, bool bShow)
    {
        CUIPanelData pPanel = _mapPanelData[ePanel];

        if (pPanel == null)
        {
            Debug.LogWarning(ePanel + "이 없습니다.. 하이어라키를 확인해주세요");
            return(null);
        }

        if (bShow)
        {
            _Stack_OpendPanel.Push(pPanel.p_pPanel);
        }

        pPanel.SetActive(bShow);

        return(pPanel.p_pPanel);
    }