Ejemplo n.º 1
0
 void AssignCurrentSong()
 {
     currentSong      = songs[activeSongCounter];
     songObjectScript = currentSong.GetComponent <SongObjectScript>();
     songObjectScript.setupSong();
     songNameText.text = songObjectScript.GetSongName();
 }
Ejemplo n.º 2
0
    public void CalculateFinalScore()
    {
        CompletionScript completionScript = GameObject.Find("CompletionUI").GetComponent <CompletionScript>();
        SongObjectScript songObjectScript = (SongObjectScript)FindObjectOfType(typeof(SongObjectScript));

        currentHighScore = completionScript.getHighScore();
        userScore        = completionScript.getUserScore();
        songName         = songObjectScript.GetSongName();
    }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     try
     {
         song     = FindObjectOfType <SongObjectScript>();
         songName = song.GetSongName();
     }
     catch (System.Exception e)
     { // Catch for when song doesn't load, spawn objects with no sound (testing purposes only)
         songName = "test";
     }
 }