From 6c9f1cb04519cf4d1245c6cfd6592ed2885b3dd9 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Thu, 18 Sep 2014 16:33:15 +0100 Subject: [PATCH] Fixed RunScript command to continue if not stopping --- Assets/Fungus/FungusScript/Commands/RunScript.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Fungus/FungusScript/Commands/RunScript.cs b/Assets/Fungus/FungusScript/Commands/RunScript.cs index 048a1732..e3b0c5b9 100644 --- a/Assets/Fungus/FungusScript/Commands/RunScript.cs +++ b/Assets/Fungus/FungusScript/Commands/RunScript.cs @@ -21,7 +21,13 @@ namespace Fungus { Stop(); } + targetFungusScript.Execute(); + + if (!stopCurrentScript) + { + Continue(); + } } else {