Describe the bug
Currently there's a bug because I moved the translation of the text into DamageNumberComponent. However, in theory it should makes sense for architecture. What we are doing right now is by re-instantiate the DamageNumberComponent everytime and add them to the tree every single time there's an instance of damage.
Expected behavior
I think what we should do is that, for offsetting the text. Have _textOffset to be outside of DamageNumberComponent and pass that value in OffsetText(float value)
Describe the bug Currently there's a bug because I moved the translation of the text into
DamageNumberComponent
. However, in theory it should makes sense for architecture. What we are doing right now is by re-instantiate the DamageNumberComponent everytime and add them to the tree every single time there's an instance of damage.Expected behavior I think what we should do is that, for offsetting the text. Have
_textOffset
to be outside ofDamageNumberComponent
and pass that value inOffsetText(float value)