Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        public void Play(string groupName, string label, SoundData data, float fadeInTime, float fadeOutTime)
        {
            SoundGroup group = GetGroupAndCreateIfMissing(groupName);

            group.Play(label, data, fadeInTime, fadeOutTime);
        }
Esempio n. 3
0
        internal void Play(string label, SoundData data, float fadeInTime, float fadeOutTime)
        {
            SoundAudioPlayer player = (MultiPlay) ? GetPlayerOrCreateIfMissing(label) : GetOnlyOnePlayer(label, fadeOutTime);

            player.Play(data, fadeInTime, fadeOutTime);
        }