public void PauseGame(bool pause) { if (GamePaused != pause) { GamePaused = pause; UI.ActivatePauseMenu(GamePaused); } }