ItemManager.csの書きかけのOnEnableをまるごとコメントアウト


Sengen.csをItemSlot.csに変更しItemSlotPrefabに追加
ItemSlotPrefabのImage>spriteに0番のスプライトを指定


ItemManager.csに以下の宣言を追加
List<ItemSlot> itemSlotList = new List<ItemSlot> ();&#8232;List<Image> slotIconList = new List<Image> ();&#8232;
Startに以下の処理を追加&#8232;itemSlotList.Add(slot.GetComponent<ItemSlot>());&#8232;slotIconList.Add(slot.GetComponent<Image>());&#8232;
以下のメソッドを追加
public void getItem(int id){
int index = itemSlotList.FindIndex (s => s.id == 0);&#8232; slotIconList [index].sprite = textures [id];&#8232; itemSlotList [index].id = id;&#8232;}