IEnumerator SwapChannel(int channel) { if (channel < channels.Length) { StartCoroutine(AudioFader.FadeClip(aSource, fadeTime, false)); yield return(new WaitForSeconds(fadeTime)); aSource.clip = channels[channel]; radioChannelText.text = "Radio: 0" + (channel + 1); StartCoroutine(AudioFader.FadeClip(aSource, fadeTime, true)); } else { StartCoroutine(AudioFader.FadeClip(aSource, fadeTime, false)); radioChannelText.text = "Radio: Off"; } }