// 字幕表示なし // 再生中はBGM音量下げる public void PlayWithNoCaption(G20_VoiceType voiceNumber) { // 字幕表示しないボイス再生 G20_SEType seType = GetSEType(voiceNumber); PlaySELimit(seType); float clipLength = G20_SEManager.GetInstance().GetClipLength(seType); G20_BGMManager.GetInstance().VolumeDown(clipLength); }
// 字幕表示含む再生 public void PlayWithCaption(G20_VoiceType voiceType) { StartCoroutine(PlayCoroutine((int)voiceType)); }
G20_SEType GetSEType(G20_VoiceType voiceType) { return(G20_SEType.VOICE0 + (int)voiceType); }
// 字幕表示なし // BGMも音量そのまま // 扱いは効果音と同じ public void PlayWithNoControll(G20_VoiceType voiceType) { var seType = GetSEType(voiceType); PlaySELimit(seType); }