Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Runtime/Views/Effects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -272,6 +270,8 @@ public static IEnumerator PausableTypewriter(TextMeshProUGUI text, float letters
}
}

text.maxVisibleCharacters += 1;

onCharacterTyped?.Invoke();
accumulator -= secondsPerLetter;
}
Expand Down