예제 #1
0
        public void RemoveItem(InventoryItemSO usingItem)
        {
            InventoryItem foundItem = items.Where(item => item.inventoryItemToUse == usingItem).FirstOrDefault();

            items.Remove(foundItem);
        }
예제 #2
0
 public InventoryItem HasItem(InventoryItemSO usingItem)
 {
     return(items.Where(item => item.inventoryItemToUse == usingItem).FirstOrDefault());
 }