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); }
public void Initialise(TowerHolder towerHolder) { this.towerHolder = towerHolder; }