public void PlayVoice(string characterLabel, SoundData data, float fadeInTime, float fadeOutTime) { CurrentVoiceCharacterLabel = characterLabel; data.Tag = TaggedMasterVolumes.Exists(x => x.Tag == characterLabel) ? characterLabel : TaggedMasterVolumeOthers; System.Play(IdVoice, characterLabel, data, fadeInTime, fadeOutTime); }
public void Play(string groupName, string label, SoundData data, float fadeInTime, float fadeOutTime) { SoundGroup group = GetGroupAndCreateIfMissing(groupName); group.Play(label, data, fadeInTime, fadeOutTime); }
internal void Play(string label, SoundData data, float fadeInTime, float fadeOutTime) { SoundAudioPlayer player = (MultiPlay) ? GetPlayerOrCreateIfMissing(label) : GetOnlyOnePlayer(label, fadeOutTime); player.Play(data, fadeInTime, fadeOutTime); }