private static void TraverseAllSources(IEnumerable <Component> sources, AudioActionHandler handler) { if (null == sources) { throw new AudioPlayerException(AudioPlayerException.NoAudioSourcesFound); } foreach (Component source in sources) { handler((AudioSource)source); } }
private static void TraverseAllSources(IEnumerable<Component> sources, AudioActionHandler handler) { if (null == sources) throw new AudioPlayerException(AudioPlayerException.NoAudioSourcesFound); foreach (Component source in sources) { handler((AudioSource)source); } }