Пример #1
0
        public void BuyIceCubes()
        {
            Console.Write("How much ice would you like to purchase? (In Cubes): ");
            int ice = int.Parse(Console.ReadLine());

            List <IceCubes> myIce = new List <IceCubes>();

            for (int i = 0; i <= ice; i++)
            {
                player.inventory.playerIceCubes.Add(new IceCubes());
            }

            player.CalculateCostOfIce();
            Console.WriteLine();
        }