Ejemplo n.º 1
0
    public void GameOver()
    {
        if (Score > BestScore)
        {
            BestScore = Score;
        }
        Score = 0;

        head.isActive = false;
        powerUpGenerator.StopGenerating();

        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
    }