public void initConfig() { //get the index of the song to play songIdx = PlayerPrefs.GetInt(songIdxKey); spawner.setConfig(configList[songIdx].spawnerConfig); configList[songIdx].freqHoldConfig.src = song; freqHold.setConfig(configList[songIdx].freqHoldConfig); progressRing.setLength(song.clip.length); progressRing.src = song; gameOverUI.setToDistort(song); song.Play(); freqHold.activate(); }