public void addItemSlot(ItemBase item, SlotInventory slot) // adiciona item no slot { for (int i = 0; i < inventoryItems.Count; i++) { if (slot.getSlotFull() == false) { slot.setItemSlot(item); slot.setSlotFull(true); slot.setNameItem(item.getNome()); } } }
public void removeItemSlot(int index, bool remv) { if (remv == true) { ItemBase itemNovo = null; for (int i = 0; i < inventoryItems.Count; i++) { inventoryItems[index].setItemSlot(itemNovo); slotController = inventoryItems[index]; slotController.setSlotFull(false); slotController.setNameItem(null); } } }