Esempio n. 1
0
 private void RemoveItemFromInventory()
 {
     if (CurrentInteractable is InventoryItem)
     {
         foreach (InventoryItem i in CurrentInteractable.InventoryRequirements)
         {
             InventoryItems.RemoveFromInventory(i);
         }
     }
     else if ((CurrentInteractable as StaticInteractable).ConsumeItem)
     {
         foreach (InventoryItem i in CurrentInteractable.InventoryRequirements)
         {
             InventoryItems.RemoveFromInventory(i);
         }
     }
     else
     {
         (CurrentInteractable as StaticInteractable).ChangeInteractionText();
     }
 }