Browse Source

Merge pull request #372 from FungusGames/set-audio-pitch-bug

Fixed OnComplete not called when duration = 0 #369
master
Chris Gregan 9 years ago
parent
commit
9ea31bc24e
  1. 4
      Assets/Fungus/Audio/Scripts/MusicController.cs

4
Assets/Fungus/Audio/Scripts/MusicController.cs

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

Loading…
Cancel
Save