PauseMenu

Handles the Paused Game state. By default, you can pause and unpause the game by pressing Escape key ( Esc ) or Start on Controllers.

It can be found within the Player UI.

  • PlayerUI: Reference to the entire Player UI object.

  • DisablePlayerUIWhenPaused: Enables or disables the Player UI when the Game is paused. Recommended to be true

  • Menu: CanvasGroup that represents the Pause Menu

  • FadeSpeed: Speed at which the fade effect is played for both fading in and fading out.

Functions & Accesors | PauseMenu.cs

Instance ( PauseMenu ) / Public Static Singleton

PauseMenu Singleton

isPaused ( bool ) / Public Getter, Private Setter, Static

Returns whether the game is paused or not

UnPause( )

Resumes the game

TogglePause( )

if Paused, unpauses the game.

If Not Paused, Pauses the game.

QuitGame( )

Exits to desktop

Last updated