아이템 선택 코드 중간 커밋

This commit is contained in:
yonggyun 2025-06-26 15:26:39 +09:00
parent 93371fa97e
commit 6f01fc023d

View File

@ -12,6 +12,8 @@ public class Inventory : MonoBehaviour
private Stack<ItemUI> unusedItemUIs;
private Transform unusedRoot;
private ItemUI selectedItem;
private async void Start()
{
var task = GoogleSheetManager.LoadSo<ItemSo>();
@ -31,7 +33,6 @@ private async void Start()
inventory["1"] = items.ItemList[1];
inventory["2"] = items.ItemList[2];
UpdateItemList();
}
public void UpdateItemList()
@ -52,6 +53,7 @@ public void UpdateItemList()
{
itemObject = Instantiate(itemPrefab.gameObject).GetComponent<ItemUI>();
}
itemObject.gameObject.SetActive(true);
itemObject.transform.SetParent(inventoryRoot);
itemObject.SetUpItem(item.Value);