Browse Source

Fixed #717 Control Audio > Play Loop volume always 1

master
Chris Gregan 6 years ago
parent
commit
a646b5ce27
  1. 2
      Assets/Fungus/Scripts/Commands/ControlAudio.cs

2
Assets/Fungus/Scripts/Commands/ControlAudio.cs

@ -134,7 +134,7 @@ namespace Fungus
} }
else else
{ {
_audioSource.Value.volume = 1; _audioSource.Value.volume = endVolume;
_audioSource.Value.loop = true; _audioSource.Value.loop = true;
_audioSource.Value.GetComponent<AudioSource>().Play(); _audioSource.Value.GetComponent<AudioSource>().Play();
} }

Loading…
Cancel
Save