public void BuyItem(Item item) { if (player.money >= 20 && player.GetComponent <InventoryManager>().inventoryCount < 6) { player.GetComponent <InventoryManager>().AddItem(item); player.money -= 20; } }
public void BuyItem(Item item) { if (player.money >= 20 && player.GetComponent <InventoryManager>().inventoryCount < 6) { player.GetComponent <InventoryManager>().AddItem(item); player.money -= 20; } }