diff --git a/Assets/Fungus/Dialog/Commands/AddOption.cs b/Assets/Fungus/Dialog/Commands/AddOption.cs index a6432a89..306f5c88 100644 --- a/Assets/Fungus/Dialog/Commands/AddOption.cs +++ b/Assets/Fungus/Dialog/Commands/AddOption.cs @@ -52,7 +52,7 @@ namespace Fungus { if (targetSequence != null) { - connectedSequences.Add (targetSequence); + connectedSequences.Add(targetSequence); } } diff --git a/Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs b/Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs index 8093f4be..4004c119 100755 --- a/Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs +++ b/Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs @@ -345,7 +345,8 @@ namespace Fungus foreach (Sequence sequenceB in connectedSequences) { - if (sequenceB == null) + if (sequenceB == null || + sequenceB.GetFungusScript() != fungusScript) { continue; }