From 9667f0edb9549a650b8e46f52e4199ccd3088058 Mon Sep 17 00:00:00 2001 From: Steve Halliwell Date: Wed, 19 Feb 2020 06:06:22 +1000 Subject: [PATCH] HasWordsRemaining correct < --- Assets/Fungus/Scripts/Components/Writer.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Assets/Fungus/Scripts/Components/Writer.cs b/Assets/Fungus/Scripts/Components/Writer.cs index b7583119..3b1bd11c 100644 --- a/Assets/Fungus/Scripts/Components/Writer.cs +++ b/Assets/Fungus/Scripts/Components/Writer.cs @@ -82,8 +82,6 @@ namespace Fungus //holds number of Word tokens in the currently running Write public int WordTokensFound { get; protected set; } - //holds count of number of Word tokens completed - protected int wordTokensProcessed; /// /// Updated during writing of Word tokens, when processed tips over found, fires NotifyAllWordsWritten @@ -100,9 +98,13 @@ namespace Fungus wordTokensProcessed = value; } } + //holds count of number of Word tokens completed + protected int wordTokensProcessed; - - public bool HasWordsRemaining { get { return WordTokensProcessed > WordTokensFound; } } + /// + /// Does the currently processing list of Tokens have Word Tokens that are not yet processed + /// + public bool HasWordsRemaining { get { return WordTokensProcessed < WordTokensFound; } } protected List writerListeners = new List();