tostring tmpro unity
[SerializeField] TextMeshProUGUI healthText;
[SerializeField] int health;
// Start is called before the first frame update
void Start()
{
}
private void UpdateHealthText()
{
healthText.text = health.ToString();
}