From cd570d4f9350b537aa2d970cfe4350dd7484167c Mon Sep 17 00:00:00 2001 From: Steve Halliwell Date: Thu, 30 Jul 2020 20:33:26 +1000 Subject: [PATCH] Correct character reveal in Writer Fix #856 In particular for textadapter when it supports revealed characters and writing speed is 0 --- Assets/Fungus/Scripts/Components/Writer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Fungus/Scripts/Components/Writer.cs b/Assets/Fungus/Scripts/Components/Writer.cs index 64f10e50..019ff519 100644 --- a/Assets/Fungus/Scripts/Components/Writer.cs +++ b/Assets/Fungus/Scripts/Components/Writer.cs @@ -583,9 +583,10 @@ namespace Fungus textAdapter.RevealedCharacters = textAdapter.CharactersToReveal; } + textAdapter.RevealedCharacters++; + if (currentWritingSpeed > 0f) { - textAdapter.RevealedCharacters++; timeAccumulator -= invWritingSpeed; if (timeAccumulator <= 0f) {