// Fill the Upgrade Panel UI with the Upgrade Unit stats private void PopulateWithUpgradeUnitStats() { upgradeDefenderPreview.sprite = upgradeUnit.GetComponentInChildren <SpriteRenderer>().sprite; unitName.text = upgradeUnit.GetUnitName(); unitCost.text = upgradeUnit.GetUnitPrice().ToString(); unitHealth.text = "Health: " + upgradeUnit.GetUnitHealth().ToString(); unitDamage.text = "Damage: " + upgradeUnit.GetUnitDamage().ToString(); unitAbility.text = "Ability: " + upgradeUnit.GetAbilityDescription(); }