Ejemplo n.º 1
0
 public void ApplyTowerStats(TowerStats stats) {
   this.towerStats = stats;
   GetComponent<SpriteRenderer>().sprite = stats.sprite;
   projectile.GetComponent<SpriteRenderer>().sprite = stats.projectile;
   connectedTowers.Add(towerStats);
   TowerManager.instance.towers.Add(this);
   TowerManager.instance.towers.ForEach(tower => tower.RegenerateAdjacentTowers());
 }
Ejemplo n.º 2
0
 public void ApplyStats(TowerStats stats) {
   this.stats = stats;
   GetComponentInChildren<Image>().sprite = stats.sprite;
   towerCostText.text = "" + stats.cost;
 }
Ejemplo n.º 3
0
 public void ApplyTowerStatsAsleep(TowerStats stats) {
   this.towerStats = stats;
   GetComponent<SpriteRenderer>().sprite = stats.sprite;
   projectile.GetComponent<SpriteRenderer>().sprite = stats.projectile;
 }