void onBuyGoldClick(BaseController selectedBtn) { var exchangeRqst = windowController.getMarketExchange()[int.Parse(selectedBtn.name)]; if (MAIN.getMain.rubins.getValue() >= exchangeRqst.From.Count) { ExchangeEvent.OnExchange(exchangeRqst.From, exchangeRqst.To, 1); } else { HUD.playAnimNeedMoreRubins(); } }