private void Update()
    {
        if (isGameOver)
        {
            if (Input.GetKeyDown(KeyCode.E))
            {
                gameOverText.SetActive(false);
                Time.timeScale = 1;
                PlayerBall playerBall   = FindObjectOfType <PlayerBall>();
                Rigidbody  playerBallRB = playerBall.GetComponent <Rigidbody>();
                playerScore = 0;
                SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().buildIndex);
            }
        }

        if (Input.GetKeyDown(KeyCode.Escape) && !isPaused)
        {
            PauseGame();
        }
        else if (Input.GetKeyDown(KeyCode.Escape) && isPaused)
        {
            ResumeGame();
        }
    }