Health Points

I have the animations of life created and the player already has life (100), how can I do to depending on the life to place an animation? Example: Player with 80 life = appearing second heart. I do not know if you explain me well by using GoogleTraslate :v

In your ‘Healthbar’ script, have some code that checks when your Hp == 80, and then add an Animator to that same GameObject and use GetComponent().Play(animationName).