Exemplo n.º 1
0
    public void ClosePauseMenu()
    {
        foreach (GameObject ball in GameObject.FindGameObjectsWithTag("Ball"))
        {
            Destroy(ball);
        }

        pauseMenu.SetActive(false);
        countdownManager.ResetCountdown();

        StartCoroutine(ballDirections.Length > 0
            ? countdownManager.CountDown(ballStarts, ballDirections)
            : countdownManager.CountDown(_inGameManager.levelCenter)); // Game not started before pause
    }