private void DestroyRaft()
    {
        gameObject.SetActive(false);

        playerInventory.RemoveItem(raftItem);

        raftHealth = maxRaftHealth;
    }
示例#2
0
 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);
             }
         }
     }
 }