Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }