Fix #845
@ -585,6 +585,15 @@ namespace Fungus
textAdapter.RevealedCharacters++;
NotifyGlyph();
//TODO need to log some info here, it's not a perf spike
// Punctuation pause
if (IsPunctuation(textAdapter.LastRevealedCharacter))
{
yield return StartCoroutine(DoWait(currentPunctuationPause));
}
if (currentWritingSpeed > 0f)
timeAccumulator -= invWritingSpeed;
@ -233,6 +233,20 @@ namespace Fungus
public char LastRevealedCharacter
get
#if UNITY_2018_1_OR_NEWER
if(tmpro != null)
return tmpro.textInfo.characterInfo[tmpro.maxVisibleCharacters].character;
#endif
return (char)0;
public int CharactersToReveal