Exemplo n.º 1
0
    public void RestartGame()
    {
        adDirector.MaybeTryShowAd();

        cardDealer.StopAllCoroutines();

        scoreDirector.ResetCurrentGameScore();

        Time.timeScale = 1f;

        cardDealer.GetBackAllCardsToDeck();

        CountOfDealedCards = 0;

        gamePauseMenu.SetActive(false);
        gameUI.SetActive(true);
        gameLoseMenu.SetActive(false);

        AddAllStars();

        gameIsStarted = true;
        lives         = GameRules.MaxLivesForGame;
    }