常用方法
常用方法
常用方法
常用方法
public void BuyLemons() { Console.Write("How many lemons would you like to purchase?: "); int lemons = int.Parse(Console.ReadLine()); for (int i = 0; i <= lemons; i++) { player.inventory.playerLemons.Add(new Lemons()); } player.CalculateCostOfLemons(); Console.WriteLine(); }