diff --git a/Assets/Fungus/Narrative/Scripts/ConversationManager.cs b/Assets/Fungus/Narrative/Scripts/ConversationManager.cs index 814e948d..1ee5e9cf 100644 --- a/Assets/Fungus/Narrative/Scripts/ConversationManager.cs +++ b/Assets/Fungus/Narrative/Scripts/ConversationManager.cs @@ -76,7 +76,13 @@ namespace Fungus { ConversationItem item = conversationItems[i]; - if (item.Character != null) + // Ignore Lua style comments and blank lines + if (item.Text.StartsWith("--") || item.Text.Trim() == "") + { + continue; + } + + if (item.Character != null) { currentCharacter = item.Character; } @@ -137,13 +143,7 @@ namespace Fungus } previousCharacter = currentCharacter; - - // Ignore Lua style comments and blank lines - if (item.Text.StartsWith("--") || item.Text.Trim() == "") - { - continue; - } - + exitSayWait = false; sayDialog.Say(item.Text, true, true, true, false, null, () => { exitSayWait = true;