Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Blinking Sprite Renderer - Why Doesn't This Work?

$
0
0
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?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>