public void PlaySound( Enumerators.SoundType soundType, string clipTitle, float volume = -1f, Enumerators.CardSoundType cardSoundType = Enumerators.CardSoundType.NONE) { foreach (SoundContainer item in _soundContainers) { if (cardSoundType.ToString().Equals(item.Tag)) { return; } } CreateSound(soundType, volume, null, false, false, 0, clipTitle, false, cardSoundType.ToString()); }
public void PlaySound( Enumerators.SoundType soundType, string clipTitle, float fadeOutAfterTime, float volume = -1f, Enumerators.CardSoundType cardSoundType = Enumerators.CardSoundType.NONE) { foreach (SoundContainer item in _soundContainers) { if (cardSoundType.ToString().Equals(item.Tag)) { return; } } SoundContainer thisSoundContainer = CreateSound(soundType, volume, null, false, false, 0, clipTitle, false, cardSoundType.ToString()); FadeSound(thisSoundContainer, false, 0.005f, 0f, fadeOutAfterTime); }