コード例 #1
0
    public void ClearUI(UI_PopupBase popUp)
    {
        if (UIPopupList.Count == 0)
        {
            return;
        }

        //int idx = UIPopupList.IndexOf(popUp);
        //UI_PopupBase _pop = UIPopupList[idx];
        popUp.Set_Close();
        Destroy(popUp.gameObject);
        UIPopupList.Remove(popUp);

        Open_NextPopup();                       //다음 팝업창
    }
コード例 #2
0
    // :: popup 삭제
    public void ClearUI(UIPOPUP _popup)
    {
        if (UIPopupList.Count == 0)
        {
            return;
        }

        Type __type = GetUIpopupType(_popup);

        UI_PopupBase _Pop = UIPopupList.Find(n => n.GetType() == __type);

        if (_Pop == null)
        {
            return;
        }
        _Pop.Set_Close();
        Destroy(_Pop.gameObject);
        UIPopupList.Remove(_Pop);



        Open_NextPopup();                       //다음 팝업창
    }