Пример #1
0
 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;
 }
Пример #2
0
 private void CheckIfSelected(SOTower selectedTower)
 {
     if (selectedTower == tower)
     {
         UIColors.Highlight(towerButton);
     }
     else
     {
         UIColors.UnHighlight(towerButton);
     }
 }
Пример #3
0
 private void TowerSelected(SOTower tower)
 {
     selectedTower = tower;
     CheckPrice();
 }