// Use this for initialization void Start() { loadData = GetComponent <LoadSong>(); songData = loadData.ExtractData(songName, 7040); Debug.Log(songData.Count); GetTriggers(); }
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"); }