Question by
tomatohorse · Apr 22, 2020 at 11:41 PM ·
c#animation
How to modify a value after the animation is done with it.
I have a boss health bar that I animate filling up when the boss enters the screen. After that, my "boss entrance" animation transitions over to the "boss normal" animation, which does not reference or modify the healthbar scale value which I used to animate it filling up.
I then want the boss's health script to modify the healthbar scale value as its health decreases. But it's (apparently) being constantly overridden by an animation that has finished playing. This seems quite weird to me.
Is there any way to tell the animator to release this value so I can modify it in code?
Comment