コード例 #1
0
 public bool Buy(CurrencyHolder Currency)
 {
     if (!isBought && Currency && Currency.Currency >= price)
     {
         isBought = !isBought;
         Currency.SumCurrency(-price);
         Save();
         return(true);
     }
     return(false);
 }