Browse Source

Correct character reveal in Writer

Fix #856
In particular for textadapter when it supports revealed characters and writing speed is 0
master
Steve Halliwell 4 years ago
parent
commit
cd570d4f93
  1. 3
      Assets/Fungus/Scripts/Components/Writer.cs

3
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)
{

Loading…
Cancel
Save