Hi, wanted to ask, how can i update player health text color, when player health is changing.
For example i’m doing something like this:
TextMeshProUGUI healthText = GetComponent<TextMeshProUGUI>(); ;
int healthValue = gameSession.GetHealth();
if(healthValue >= 300)
{
// green
healthText.color = new Color(4, 255, 29, 255);
}
Color remains the same. Is there something that i’ve missed ?