Pause Menu By Pshaf001


For the pause menu, I made 3 buttons resume, settings & quit. 

Starting off I had to initiate the pause menu to pop up. For this, I had to set the pausemenu gameobject to true. freeze the in game time using timescale and set the game is paused to true. Once I had made this work and when pressing escape it will pause the game. I then could work on making the button work. For the setting button, I copied everything for the Mainmenu and settings pieces which I had done earlier.  As for the quit I just called Application.quit(). For the resume, I had to put everything in the pause function but in reverse so setting the PauseMenu UI to false and setting the timescale back to normal.

Leave a comment

Log in with itch.io to leave a comment.