Пример #1
0
        private void GoToStore()
        {
            Console.WriteLine($"You have {player.inventory.cups.Count} cups, and ${player.money.cash}");
            int cups = store.GetNumberOfCups();

            store.AddCupsToInventory(cups);
            Console.WriteLine($"You have {player.inventory.lemons.Count} lemons, and ${player.money.cash}");
            int lemons = store.GetNumberOfLemons();

            store.AddLemonsToInventory(lemons);
            Console.WriteLine($"You have {player.inventory.sugar.Count} cups of sugar, and ${player.money.cash}");
            int sugar = store.GetCupsOfSugar();

            store.AddSugarToInventory(sugar);
            Console.WriteLine($"You have {player.inventory.ice.Count} ice cubes, and ${player.money.cash}");
            int ice = store.GetNumberOfIceCubes();

            store.AddIceToInventory(ice);
        }