Ejemplo n.º 1
0
        public void BuyIceCubes()
        {
            int amount = Userinterface.PurchashingIceCubes();

            if (player.wallet.moneyInWallet >= priceOfIceCubes)
            {
                Console.WriteLine("success in buying IceCubes");
            }
            else
            {
                Console.WriteLine("You need more money");
            }



            for (int i = 0; i <= amount; i++)
            {
                player.inventory.iceCubes.Add(new IceCube());
            }
            player.wallet.moneyInWallet -= amount;
            Menu();
        }