|
|
|
@ -4,14 +4,13 @@
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
using UnityEngine; |
|
|
|
|
using System.Collections; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
|
|
namespace Fungus |
|
|
|
|
{ |
|
|
|
|
/* |
|
|
|
|
* Manages audio effects for Dialogs |
|
|
|
|
*/ |
|
|
|
|
/// <summary> |
|
|
|
|
/// Manages audio effects for Dialogs. |
|
|
|
|
/// </summary> |
|
|
|
|
public class WriterAudio : MonoBehaviour, IWriterListener |
|
|
|
|
{ |
|
|
|
|
[Tooltip("Volume level of writing sound effects")] |
|
|
|
@ -74,12 +73,12 @@ namespace Fungus
|
|
|
|
|
targetAudioSource.volume = 0f; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Plays a voiceover audio clip. |
|
|
|
|
* Voiceover behaves differently than speaking sound effects because it |
|
|
|
|
* should keep on playing after the text has finished writing. It also |
|
|
|
|
* does not pause for wait tags, punctuation, etc. |
|
|
|
|
*/ |
|
|
|
|
/// <summary> |
|
|
|
|
/// Plays a voiceover audio clip. |
|
|
|
|
/// Voiceover behaves differently than speaking sound effects because it |
|
|
|
|
/// should keep on playing after the text has finished writing. It also |
|
|
|
|
/// does not pause for wait tags, punctuation, etc. |
|
|
|
|
/// </summary> |
|
|
|
|
public virtual void PlayVoiceover(AudioClip voiceOverClip) |
|
|
|
|
{ |
|
|
|
|
if (targetAudioSource == null) |
|
|
|
|