Closed itsTripp closed 2 years ago
This is somewhat apart of the health logic I made. When you take damage, receive health, or die you can easily attach it to another component via UnityEvent.
I also created an example of how color change can be done via a Test script I made and hooked the unity events too.
This issue is nearly complete, just requires proper implementation.
Currently, the only damage indicator on the character is a hurt animation that changes the player to a red color.
This works, however, if the player is damaged during a jump, then the animation waits until the player hits the ground to display.
This can be resolved by temporarily changing the color on the sprite renderer and then changing it back.