Ejemplo n.º 1
0
    public void OnClick()
    {
        int total = _totalCoinsCount.TotalCoinsCount - _towerPrice;

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