private void CheckForPause() { if (Input.GetButtonDown("Pause") && !paused) { //Successful pause FindObjectOfType <InputManager>().ToggleInputsOff(); TogglePause(); pauseScreen.Activate(); pauseScreen.gameObject.SetActive(true); Time.timeScale = 0; } }