My player is invincible for 2 seconds after taking a hit. I'm trying to make him blink during this time, but it's not happening visually, even though my code seems perfect to me.
Any help is greatly appreciated, thank you.
Edit: Ah yes, now, after not changing anything at all, it crashes Unity so now I can't tell if it's working or not. Maybe it's actually disabling the sprite renderer now, but doing so makes it crash?
The blinking code that doesn't work and/or crashes Unity:...
Blinking Sprite Renderer - Why Doesn't This Work?
Any help is greatly appreciated, thank you.
Edit: Ah yes, now, after not changing anything at all, it crashes Unity so now I can't tell if it's working or not. Maybe it's actually disabling the sprite renderer now, but doing so makes it crash?
The blinking code that doesn't work and/or crashes Unity:...
Blinking Sprite Renderer - Why Doesn't This Work?