Browse Source

Bail out first thing if comment

master
lealeelu 9 years ago
parent
commit
80372fb55f
  1. 16
      Assets/Fungus/Narrative/Scripts/ConversationManager.cs

16
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;

Loading…
Cancel
Save