Ejemplo n.º 1
0
    void ShowSongHighScore()
    {
        highScoreText.text = "Highscore: " + songObjectScript.GetSongHighScore().ToString();

        if (songObjectScript.IsNormalFullCombo())
        {
            NormalStar.SetActive(true);
        }
        else
        {
            NormalStar.SetActive(false);
        }

        if (songObjectScript.IsHardFullCombo())
        {
            HardStar.SetActive(true);
        }
        else
        {
            HardStar.SetActive(false);
        }

        if (songObjectScript.IsInsaneFullCombo())
        {
            InsaneStar.SetActive(true);
        }
        else
        {
            InsaneStar.SetActive(false);
        }
    }
Ejemplo n.º 2
0
 private void FindHighScore()
 {
     song      = (SongObjectScript)FindObjectOfType(typeof(SongObjectScript));
     highScore = song.GetSongHighScore();
 }