Objective: Reload the scene by pressing the “R” key on game over.

Like with the gameover text, we want a message that will pop up on gameover. We don’t want it to flicker though, so basically doing the same thing that we did here minus the flickering part will do the job just fine.

But now we want to be able to restart the whole scene by pressing “R”. To do this, we’ll need to create another empty object named GameManager, and a script for it with the same name.

Before we dive into the scripts, go to file >…

Sabrina Windsor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store