Example #1
0
    public void Morreu()
    {
        //Setar Highscore
        if (score > SaveControl.RetornarHighScore())
        {
            SaveControl.SetarHighScore(score);
        }

        SaveControl.SetarLastScore(score);
        gameOverText.SetActive(true);
        gameOver = true;
        SaveControl.SalvarArquivoJogo();
    }
Example #2
0
 void Start()
 {
     scoreTemp          = score;
     highscoreText.text = SaveControl.RetornarHighScore().ToString();
     this.RetornaStringFormatadaEvolutionState();
 }