Example #1
0
 public void CheckingtoBuy(Inventory inventory, Recipe recipe, Player player)
 {
     if (customerNumber >= 20)
     {
         numberOfCustomersBuy++;
         inventory.CheckingInventoryCups(recipe);
         inventory.RemoveIceCubes(recipe);
         player.amountOfMoney += recipe.price;
     }
 }