Ejemplo n.º 1
0
        private void HandleTowerSelected(TowerHolder towerHolder)
        {
            tooltipDisplay.transform.position = mainCamera.WorldToScreenPoint(towerHolder.Tower.transform.position);

            towerIconImage.sprite = towerHolder.Tower.TowerData.Icon;
            towerNameText.text    = towerHolder.Tower.TowerData.Name;
            towerPriceText.text   = $"${towerHolder.Tower.TowerData.Price}";
            towerDPSText.text     = $"DPS: {towerHolder.Tower.TowerData.DPS}";
            towerRangeText.text   = $"Range: {towerHolder.Tower.TowerData.Range}";

            this.towerHolder = towerHolder;

            tooltipDisplay.SetActive(true);
        }
Ejemplo n.º 2
0
 public void Initialise(TowerHolder towerHolder)
 {
     this.towerHolder = towerHolder;
 }