// Use this for initialization private void Awake() { //Debug.Log("Menu load"); Time.timeScale = 1; combo = 0; UIManager.maxCombo = 0; AutoPlay = _AutoPlay; if (GlobalData.songsAvailable == null || GlobalData.songsAvailable.Count == 0) { GlobalData.DoDebugText("Adjusting Universal Constants"); //StartCoroutine(GlobalData.UpdateSongList()); } else { if (AutoPlay) { SelectSong(Random.Range(0, GlobalData.songsAvailable.Count)); } else { SelectSong(GlobalData.selectedSongIndex); } //Debug.Log(GlobalData.selectedSong.name); } }