Help! I found a problem with my ‘inventoryType’ as my editor stating it does not exist. It was located in InventoryManager.cs and this is the code.
if(inventoryType == InventorySlot.InventoryType.Item)
{
//Iterate through each inventory slot and find an empty slot
for(int i = 0; i < items.Length; i++)
{
if(items[i] == null)
{
//Send the equipped item over to its new slot
items[i] = equippedItem;
//Remove the item from the hand
equippedItem = null;
break;
}
}
}
And I already write it in InventorySlot.cs here:
//Determines which inventory section this slot apar of
public InventoryType inventoryType;