public void buy_timer(ref Coin coins) { if (max_time.TotalSeconds >= 15 && coins.Coins > Timer_cost) { max_time = max_time.Subtract(new TimeSpan(0, 0, 5)); coins.Coins -= Timer_cost; } }
public void buy_available(ref Coin coins) { if (coins.Coins > Available_cost) { available++; coins.Coins -= Available_cost; } }
public void buy_maximum(ref Coin coins) { if (coins.Coins > Maximum_cost) { maximum++; coins.Coins -= Maximum_cost; } }