From 4f7088487b13e047373093ee2cae8c26213e3acb Mon Sep 17 00:00:00 2001 From: John O'Kane Date: Fri, 11 Sep 2015 15:58:24 +0100 Subject: [PATCH] Issue where audio would continue when audio is finished while waitUntilFinished was not set to true --- Assets/Fungus/Audio/Scripts/Commands/ControlAudio.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Fungus/Audio/Scripts/Commands/ControlAudio.cs b/Assets/Fungus/Audio/Scripts/Commands/ControlAudio.cs index 154f9b28..66e6b065 100644 --- a/Assets/Fungus/Audio/Scripts/Commands/ControlAudio.cs +++ b/Assets/Fungus/Audio/Scripts/Commands/ControlAudio.cs @@ -229,7 +229,10 @@ namespace Fungus void AudioFinished() { - Continue(); + if (waitUntilFinished) + { + Continue(); + } } public override string GetSummary()