|
|
@ -85,7 +85,7 @@ namespace Fungus |
|
|
|
playingVoiceover = true; |
|
|
|
playingVoiceover = true; |
|
|
|
|
|
|
|
|
|
|
|
targetAudioSource.volume = 1f; |
|
|
|
targetAudioSource.volume = 1f; |
|
|
|
targetVolume = 1f; |
|
|
|
targetVolume = volume; |
|
|
|
targetAudioSource.loop = false; |
|
|
|
targetAudioSource.loop = false; |
|
|
|
targetAudioSource.clip = voiceOverClip; |
|
|
|
targetAudioSource.clip = voiceOverClip; |
|
|
|
targetAudioSource.Play(); |
|
|
|
targetAudioSource.Play(); |
|
|
@ -102,7 +102,7 @@ namespace Fungus |
|
|
|
|
|
|
|
|
|
|
|
playingVoiceover = false; |
|
|
|
playingVoiceover = false; |
|
|
|
targetAudioSource.volume = 0f; |
|
|
|
targetAudioSource.volume = 0f; |
|
|
|
targetVolume = 1f; |
|
|
|
targetVolume = volume; |
|
|
|
|
|
|
|
|
|
|
|
if (audioClip != null) |
|
|
|
if (audioClip != null) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -161,7 +161,7 @@ namespace Fungus |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
targetVolume = 1f; |
|
|
|
targetVolume = volume; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected virtual void Update() |
|
|
|
protected virtual void Update() |
|
|
|