Created
November 7, 2017 01:44
-
-
Save Zapafaz/d06b9efecac24df0a047959dc55bde71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pause the game and show the pause menu | |
void Pause() | |
{ | |
isPaused = true; | |
Time.timeScale = 0.0F; | |
menuCanvas.enabled = true; | |
} | |
// Unpause the game and hide the pause menu | |
void Continue() | |
{ | |
isPaused = false; | |
Time.timeScale = 1.0F; | |
menuCanvas.enabled = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment