아이템 선택 코드 중간 커밋
This commit is contained in:
parent
93371fa97e
commit
6f01fc023d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user