void GoodsShopCategoryList(CSelectCategory.ESelectGoodsShopCategory tESelect) { m_cWeaponShop.m_shopDictionary[CSelectShop.ShopInfo.ShopContenItemList].SetActive(true); m_selectGoodsShopCategory = tESelect; m_shopcheck.m_shopDictionary[CSelectShop.ShopInfo.Category].SetActive(false); if (CSelectCategory.ESelectGoodsShopCategory.Potion == tESelect) { m_cGoodsShop.InsertPotionItemData(); m_eBackUiState = CSelectCategory.EBACKUISTATE.Disable; Debug.Log("포션오픈"); } else if (CSelectCategory.ESelectGoodsShopCategory.Goods == tESelect) { //m_cWeaponShop.InsertBowItemData(); m_eBackUiState = CSelectCategory.EBACKUISTATE.Disable; Debug.Log("잡화오픈"); } else if (CSelectCategory.ESelectGoodsShopCategory.ETC == tESelect) { //m_cWeaponShop.InsertStaffData(); m_eBackUiState = CSelectCategory.EBACKUISTATE.Disable; Debug.Log("기타오픈"); } }
public void SettingGoodsSlotListInfo(CSelectCategory.ESelectGoodsShopCategory tItemCategory) { m_eSelectGoodsShopCategory = tItemCategory; if (CSelectCategory.ESelectGoodsShopCategory.Potion == m_eSelectGoodsShopCategory) { Debug.Log("포션 아이템 호출"); for (int i = 0; i < m_shopSlotCount; i++) { m_slots[i].transform.name = CPotionData.GetInstance.m_potionItemList[i].m_name; m_slots[i].transform.GetChild(3).GetComponent <CGetItemInfomations>().m_id = CPotionData.GetInstance.m_potionItemList[i].m_id; m_slots[i].transform.GetChild(3).GetComponent <CGetItemInfomations>().m_cost = CPotionData.GetInstance.m_potionItemList[i].m_cost; m_slots[i].transform.GetChild(3).GetComponent <CGetItemInfomations>().m_name = CPotionData.GetInstance.m_potionItemList[i].m_name; m_slots[i].transform.GetChild(3).GetComponent <CGetItemInfomations>().m_desc = CPotionData.GetInstance.m_potionItemList[i].m_description; m_slots[i].transform.GetChild(3).GetComponent <CGetItemInfomations>().m_itemCode = CPotionData.GetInstance.m_potionItemList[i].m_itemCode; if (i <= m_shopSlotCount) { //TODO : 잉여 슬롯 가려주기 SlotCount(CPotionData.GetInstance.m_potionItemList.Count); } else { //TODO : 생성되어있는 슬롯보다 데이터의 수가 많을 경우 DB 저글링 return; } } } else if (CSelectCategory.ESelectGoodsShopCategory.Goods == m_eSelectGoodsShopCategory) { Debug.Log("잡화 아이템 호출"); //for (int i = 0; i < CSwordData.GetInstance.m_swordItemList.Count; i++) //{ // // //m_slots[i].transform.name = CSwordData.GetInstance.m_swordItemList[i].m_name; // //m_slots[i].transform.GetChild(3).GetComponent<CGetItemInfomations>().m_id = CSwordData.GetInstance.m_swordItemList[i].m_id; // //m_slots[i].transform.GetChild(3).GetComponent<CGetItemInfomations>().m_cost = CSwordData.GetInstance.m_swordItemList[i].m_cost; // //m_slots[i].transform.GetChild(3).GetComponent<CGetItemInfomations>().m_name = CSwordData.GetInstance.m_swordItemList[i].m_name; // //m_slots[i].transform.GetChild(3).GetComponent<CGetItemInfomations>().m_desc = CSwordData.GetInstance.m_swordItemList[i].m_description; //} } else if (CSelectCategory.ESelectGoodsShopCategory.ETC == m_eSelectGoodsShopCategory) { Debug.Log("기타 아이템 호출"); //for (int i = 0; i < CSwordData.GetInstance.m_swordItemList.Count; i++) //{ // //m_slots[i].transform.name = CSwordData.GetInstance.m_swordItemList[i].m_name; // //m_slots[i].transform.GetChild(3).GetComponent<CGetItemInfomations>().m_id = CSwordData.GetInstance.m_swordItemList[i].m_id; // //m_slots[i].transform.GetChild(3).GetComponent<CGetItemInfomations>().m_cost = CSwordData.GetInstance.m_swordItemList[i].m_cost; // //m_slots[i].transform.GetChild(3).GetComponent<CGetItemInfomations>().m_name = CSwordData.GetInstance.m_swordItemList[i].m_name; // //m_slots[i].transform.GetChild(3).GetComponent<CGetItemInfomations>().m_desc = CSwordData.GetInstance.m_swordItemList[i].m_description; //} } }
//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("던전 구분"); } }