Game doesn't start after death and pause menu

Hello, i’ve been working on a game for Android devices which includes a death and respawn system from a tutorial on youtube, the problem is after death i must press Esc to make the menu appear and after clicking on the Restart option it doesn’t start until i press Esc again. Any help with that?

Manager script:
public class Manager : MonoBehaviour
{
bool gameHasEnded = false;

public float restartDelay = 1f;

public void EndGame()
{
    if(gameHasEnded == false && Lives.livesCounter == 0)
    {
        gameHasEnded = true;
        Invoke("Restart", restartDelay);
    }
}

void Restart()
{
    SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}

}

Pause menu script:
public class PauseMenu : MonoBehaviour
{
public static bool gameIsPaused = false;

public GameObject pauseMenuUI;

void Update()
{
    if (Input.GetKeyDown(KeyCode.Escape))
    {
        if (gameIsPaused)
        {
            Resume();
        } 
        else
        {
            Pause();
        }
    }
}

public void Resume ()
{
    pauseMenuUI.SetActive(false);
    Time.timeScale = 1f;
    gameIsPaused = false;
}

public void Pause ()
{
    pauseMenuUI.SetActive(true);
    Time.timeScale = 0f;
    gameIsPaused = true;
}

}

I may be wrong, but I believe your problem is caused by you setting Time.timeScale to 0. Since you did that, your restartDelay timer will never go down in time. The reason you need to press esc again is because when you do that, time starts up again. Do you need a restartDelay? If you took that out, it would be fine I believe.