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