Browse Source

Merge pull request #463 from snozbot/WriterAudioVolumesSetProperly

Setting the targetVolume to the volume specified in WriterAudio
master
Chris Gregan 9 years ago
parent
commit
ddc14b40b3
  1. 8
      Assets/Fungus/UI/Scripts/WriterAudio.cs

8
Assets/Fungus/UI/Scripts/WriterAudio.cs

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

Loading…
Cancel
Save