void TowerSelected(SOTower tower) { towerName.text = tower.Name; price.text = "Price: " + tower.Price + "$"; speed.text = "Speed: " + tower.AttackSpeed; damage.text = "Damage: " + tower.Shot.GetComponent <Shot>().Damage; preview.sprite = tower.PreviewImage; }
private void CheckIfSelected(SOTower selectedTower) { if (selectedTower == tower) { UIColors.Highlight(towerButton); } else { UIColors.UnHighlight(towerButton); } }
private void TowerSelected(SOTower tower) { selectedTower = tower; CheckPrice(); }