Unity: Creating a flicker effect
Objective: We need to create a flicker effect to our game over text.
To do this we need to go into our UI manager and create a coroutine so we can use a while loop. So while the loop is true we can assign the text to say game over, then wait 5 seconds, then assign the text to say nothing and then wait 5 seconds again.
Once you’ve done that, you’ll want to call the coroutine you just made after the game over text is set to active in the update lives function so that it only displays after the player has died.