public static void ItemPickedup (Item item) { if (itemSlots == null) new GameObject ("ItemManager").AddComponent <ItemManager> (); itemSlots [(int)item].amount++; }
public ItemSlot (Item item) { this.item = item; amount = 0; }