示例#1
0
 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;
     }
 }
示例#2
0
 public void buy_available(ref Coin coins)
 {
     if (coins.Coins > Available_cost)
     {
         available++;
         coins.Coins -= Available_cost;
     }
 }
示例#3
0
 public void buy_maximum(ref Coin coins)
 {
     if (coins.Coins > Maximum_cost)
     {
         maximum++;
         coins.Coins -= Maximum_cost;
     }
 }