public void AddToBagFromInventory(Item item, int counter) { ConsumableItems NonCon = (ConsumableItems)item; ChestSpace[counter] = null; AddToBag(NonCon); }
public void RemoveFromBag(ConsumableItems item) { for (int i = 0; i < Bag.Length; i++) { if (Bag[i] == item) { Bag[i] = null; break; } } }
public void AddToBag(ConsumableItems item) { for (int i = 0; i < Bag.Length; i++) { if (Bag[i] != null) { continue; } else { Bag[i] = item; break; } } }