Pause Menu By Pshaf001
Peril » Devlog
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.
Peril
Steal the gold don't get caught!
More posts
- GameOver Menu by Pshaf001May 09, 2021
- Setting's By Pshaf001May 09, 2021
- Gantt Chart - mhuss023May 09, 2021
- Main Menu by Pshaf001May 09, 2021
- Collectable By Pshaf001May 09, 2021
- Research By Pshaf001Apr 22, 2021
- Planning By Pshaf001Apr 22, 2021
Leave a comment
Log in with itch.io to leave a comment.