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