Ejemplo n.º 1
0
        public void PlayTimedSound(List <string> type, SoundLayer layer, float timeToPlay)
        {
//            if (channelMute[layer] || channelPaused[layer])
//                return;

            string clipPath = SoundMapping.GetSoundClipPathForEventType(type);

            SoundManagerPlayer.SoundManagerClip smc = _player.PlayTimedSound(clipPath, layer, timeToPlay);

            if (channelMute[layer])
            {
                smc.MuteClip();
            }

            if (channelPaused[layer])
            {
                smc.PauseClip();
            }
        }
Ejemplo n.º 2
0
        public void PlaySound(List <string> soundList, SoundLayer layer, bool isLooping = false)
        {
//            if (channelMute[layer] || channelPaused[layer])
//                return;

            string clipPath = SoundMapping.GetSoundClipPathForEventType(soundList);

            SoundManagerPlayer.SoundManagerClip smc = _player.PlaySound(clipPath, layer, isLooping);

            if (channelMute[layer])
            {
                smc.MuteClip();
            }

            if (channelPaused[layer])
            {
                smc.PauseClip();
            }
        }