public void OnClick() { int total = _totalCoinsCount.TotalCoinsCount - _towerPrice; if (total >= 0) { _selectPopup.SetTower(_slotId); _totalCoinsCount.CoinsCount(_towerPrice * -1); } }
public void OnClick() { int total = _totalCoinsCount.TotalCoinsCount - _towerPrice; if (total >= 0) { _selectPopup.SetTower(_slotId); _totalCoinsCount.CoinsCount(_towerPrice * -1); } }