public static void UnPause() { settingsMenu.CloseSettings(); //Cursor.visible = false; CameraController.LockCamera(); Time.timeScale = 1f; pauseMenu.SetActive(false); IsPaused = false; }