Beispiel #1
0
 public void PlayVoice(string characterLabel, SoundData data, float fadeInTime, float fadeOutTime)
 {
     // 同じキャラが被せて会話することは物理的にありえない.
     if (!string.IsNullOrEmpty(CurrentVoiceCharacterLabel) && CurrentVoiceCharacterLabel == characterLabel)
     {
         System.Stop(IdVoice, CurrentVoiceCharacterLabel, 0);
     }
     CurrentVoiceCharacterLabel = characterLabel;
     data.Tag = TaggedMasterVolumes.Exists(x => x.Tag == characterLabel) ? characterLabel : TaggedMasterVolumeOthers;
     System.Play(IdVoice, characterLabel, data, fadeInTime, fadeOutTime);
 }
Beispiel #2
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);
 }