public void ChangeSong(RhythmMap map, bool restart) { activeMap.Pause(); if (restart) { map.RestartSong(); } else { map.Unpause(); } activeMap = map; }
void Start() { maps = GetComponentsInChildren <RhythmMap>(); activeMap = maps[startingActiveMapNumber]; }