Пример #1
0
 // Use this for initialization
 void Start()
 {
     loadData = GetComponent <LoadSong>();
     songData = loadData.ExtractData(songName, 7040);
     Debug.Log(songData.Count);
     GetTriggers();
 }
Пример #2
0
    IEnumerator Setup()
    {
        yield return(new WaitForSeconds(1));

        float fillAmount = 1 / songName.Length;

        for (int i = 0; i < songName.Length; i++)
        {
            songs.Add(db.ExtractData(songName[i], songLength[i]));
            triggers.Add(db.ExtractTriggerData("Triggers", i));
        }

        FinalSong     = db.ExtractData("FinalSong", 7095);
        FinalTriggers = db.ExtractTriggerData("Triggers", 10);

        yield return(new WaitForSeconds(1));

        SceneManager.LoadScene("SetupHighscoreData");
    }