Browse Source

Fixed onComplete callback in MusicManager.SetAudioVolume when duration is 0

master
Christopher 8 years ago
parent
commit
8d38ea62a7
  1. 4
      Assets/Fungus/Scripts/Components/MusicManager.cs

4
Assets/Fungus/Scripts/Components/MusicManager.cs

@ -113,6 +113,10 @@ namespace Fungus
if (Mathf.Approximately(duration, 0f))
{
if (onComplete != null)
{
onComplete();
}
audio.volume = volume;
return;
}

Loading…
Cancel
Save