private void DestroyRaft() { gameObject.SetActive(false); playerInventory.RemoveItem(raftItem); raftHealth = maxRaftHealth; }
public void EliminateItemsUsedInCrafting() //This will delete the items used for crafting { foreach (Item item in itemsVec) { if (item != null) { if (item.willBeUsedToCraft) { playerInventory.RemoveItem(item); } } } }