Galaxy Shooter 2D — Game Over #11
A Retro Game Over Screen!
When the player has no lives left, I want my game to display a giant “Game Over” text. Like the good ol’ times…
Something really easy to do is just enable and disable the text in an interval with the use of Coroutines. But instead, I used the Animator to fade the text’s alpha value in and out. Why use an animation and not Coroutines to do the same thing? Because it’s simpler to do. ;)
Once the player dies, I activate the Game Over text GameObject and I let the Animator do its thing. Literally less than 1 minute to set up.