Exemple #1
0
    void DungeonCategoryList(CSelectCategory.ESelectDungeonCategory tEselect)
    {
        m_cEntryDungeon.m_shopDictionary[CSelectShop.ShopInfo.ShopContenItemList].SetActive(true);

        m_selectDungeonCategory = tEselect;
        m_shopcheck.m_shopDictionary[CSelectShop.ShopInfo.Category].SetActive(false);

        if (CSelectCategory.ESelectDungeonCategory.Cave == tEselect)
        {
            m_eBackUiState = CSelectCategory.EBACKUISTATE.Disable;
            Debug.Log("동굴오픈");
            m_cEntryDungeon.InsertFloorData(0, 10);
        }
        else if (CSelectCategory.ESelectDungeonCategory.Underworld == tEselect)
        {
            m_eBackUiState = CSelectCategory.EBACKUISTATE.Disable;
            m_cEntryDungeon.InsertFloorData(10, 20);
            Debug.Log("지하세계오픈");
        }
        else if (CSelectCategory.ESelectDungeonCategory.Forest == tEselect)
        {
            m_eBackUiState = CSelectCategory.EBACKUISTATE.Disable;

            m_cEntryDungeon.InsertFloorData(20, 30);
            Debug.Log("숲오픈");
        }
        else if (CSelectCategory.ESelectDungeonCategory.Sky == tEselect)
        {
            m_eBackUiState = CSelectCategory.EBACKUISTATE.Disable;

            m_cEntryDungeon.InsertFloorData(30, 40);
            Debug.Log("하늘오픈");
        }
    }
Exemple #2
0
    //enum으로 체크
    public void OpenItemListInCategory(CSelectCategory.ESelcetWeaponCategory tEWeaponSelect           = CSelectCategory.ESelcetWeaponCategory.Default,
                                       CSelectCategory.ESelectGoodsShopCategory tEGoodsSelect         = CSelectCategory.ESelectGoodsShopCategory.Default,
                                       CSelectCategory.ESelectDungeonCategory tESelectDungeonCategory = CSelectCategory.ESelectDungeonCategory.Default)
    {
        if (m_shopcheck.m_shopinfo == CSelectShop.ShopInfo.WeaponShop)
        {
            WeaponCateogryList(tEWeaponSelect);

            Debug.Log("샵구분");
        }
        else if (m_shopcheck.m_shopinfo == CSelectShop.ShopInfo.GoodsShop)
        {
            GoodsShopCategoryList(tEGoodsSelect);
            Debug.Log("샵구분");
        }
        else if (m_shopcheck.m_shopinfo == CSelectShop.ShopInfo.EntryDungeonDesk)
        {
            DungeonCategoryList(tESelectDungeonCategory);
            Debug.Log("던전 구분");
        }
    }
Exemple #3
0
    public void SettingDungeonSlotListInfo(CSelectCategory.ESelectDungeonCategory tESelectDungeonCategory)
    {
        m_eSelectDungeonCategory = tESelectDungeonCategory;

        if (CSelectCategory.ESelectDungeonCategory.Cave == m_eSelectDungeonCategory)
        {
            for (int i = 0; i < CDungeonData.GetInstance.m_dungeonList.Count; i++)
            {
                m_slots[i].transform.GetChild(4).gameObject.SetActive(true);
                m_slots[i].transform.name = CDungeonData.GetInstance.m_dungeonList[i].m_bossTitle;
                m_slots[i].transform.GetChild(4).GetComponent <CGetItemInfomations>().m_floor     = CDungeonData.GetInstance.m_dungeonList[i].m_floor;
                m_slots[i].transform.GetChild(4).GetComponent <CGetItemInfomations>().m_bossName  = CDungeonData.GetInstance.m_dungeonList[i].m_bossName;
                m_slots[i].transform.GetChild(4).GetComponent <CGetItemInfomations>().m_bossTitle = CDungeonData.GetInstance.m_dungeonList[i].m_bossTitle;
                m_slots[i].transform.GetChild(4).GetComponent <CGetItemInfomations>().m_clear     = CDungeonData.GetInstance.m_dungeonList[i].m_clear;

                if (i <= m_shopSlotCount)
                {
                    //TODO : 잉여 슬롯 가려주기
                    SlotCount(CDungeonData.GetInstance.m_dungeonList.Count);
                }
                else
                {
                    //TODO : 생성되어있는 슬롯보다 데이터의 수가 많을 경우 DB 저글링
                    return;
                }
            }
        }
        else if (CSelectCategory.ESelectDungeonCategory.Underworld == m_eSelectDungeonCategory)
        {
            Debug.Log("지하세계");
        }
        else if (CSelectCategory.ESelectDungeonCategory.Forest == m_eSelectDungeonCategory)
        {
            Debug.Log("숲");
        }
        else if (CSelectCategory.ESelectDungeonCategory.Sky == m_eSelectDungeonCategory)
        {
            Debug.Log("하늘구역");
        }
    }