예제 #1
0
 public bool TryBuySelected()
 {
     if (IsCurrentIndexValid && currency)
     {
         BallData current = balls[CurrentIndex];
         if (current)
         {
             bool bought = current.Buy(currency);
             UpdateUi();
             return(bought);
         }
     }
     return(false);
 }