Browse Source

Bail out first thing if comment

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

12
Assets/Fungus/Narrative/Scripts/ConversationManager.cs

@ -76,6 +76,12 @@ namespace Fungus
{
ConversationItem item = conversationItems[i];
// Ignore Lua style comments and blank lines
if (item.Text.StartsWith("--") || item.Text.Trim() == "")
{
continue;
}
if (item.Character != null)
{
currentCharacter = item.Character;
@ -138,12 +144,6 @@ 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