private void UnPauseGame() { // Pause the game state m_GameState = GameState.Playing; //Hide the pause menu m_UI.HidePauseMenu(); //hide the cursor Cursor.visible = false; //Lock the mouse Cursor.lockState = CursorLockMode.Locked; //set the time scale to move again Time.timeScale = 1.0f; //start the mouselook again m_Player.GetComponent <MouseLook>().UnPause(); }