Ejemplo n.º 1
0
    public void DeathScreen()
    {
        isPlaying = false;
        mainMenu.SetActive(true);
        deathScreen.SetActive(true);
        spawner.KillAll();

        if (gamePoints > gameRecord)
        {
            gameRecord      = gamePoints;
            scoreText.text  = "Новый рекорд " + gamePoints + " очков!";
            recordText.text = "Ваш рекорд : " + gameRecord;
        }

        else
        {
            scoreText.text = "Вы набрали " + gamePoints + " очков";
        }

        if (settings.isSaving)
        {
            Save();
        }
    }