Adding a pause menu

Now that we have the main menu, we will move on next to building something else that most games will need, a pause menu. In PC games, this will likely be triggered by the Esc key, whereas in a mobile game, it typically needs its very own button. We will make it so that this project supports both.

  1. To start off, let's open up the Gameplay scene by going to the Project window and then opening the Assets/Scenes folder and double-clicking on Gameplay, thus saving the MainMenu level if you didn't do so already:

Before we create a button to open our pause menu, let's go ahead and create the pause menu first that we'll be opening. ...

Get Unity 2017 Mobile Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.