Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | icqqq |
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.
Are you working in 2d or 3d ?
What is wrong with " the character is coupled with the UI element" ?
GameVisitor | 2018-06-17 08:14
in 3D, but what is the matter?
The problem is the character is not flexible and may be hard to manage if it coupled with UI
icqqq | 2018-06-17 15:29