diff --git a/Runtime/Views/Effects.cs b/Runtime/Views/Effects.cs index 87edf300..2ec9770e 100644 --- a/Runtime/Views/Effects.cs +++ b/Runtime/Views/Effects.cs @@ -253,8 +253,6 @@ public static IEnumerator PausableTypewriter(TextMeshProUGUI text, float letters // time for. while (accumulator >= secondsPerLetter) { - text.maxVisibleCharacters += 1; - // ok so the change needs to be that if at any point we hit the pause position // we instead stop worrying about letters // and instead we do a normal wait for the necessary duration @@ -272,6 +270,8 @@ public static IEnumerator PausableTypewriter(TextMeshProUGUI text, float letters } } + text.maxVisibleCharacters += 1; + onCharacterTyped?.Invoke(); accumulator -= secondsPerLetter; }