I have a character with hp and a progress bar to display the hp.
Is there the best way to bind the hp data to progress bar value?
Currently I just update the progress bar value whenever my character hp is changed.
But I think it is not good as the character is coupled with the UI element. Therefore I want a way to bind data between the character and the progress bar.
Thank you.