Browse Source

Merge pull request #169 from FungusGames/no-pause-on-last-character

Fixed: No need for pause on last punctuation character in a sentence #168
master
Chris Gregan 9 years ago
parent
commit
1335170225
  1. 1
      Assets/Fungus/UI/Scripts/Writer.cs

1
Assets/Fungus/UI/Scripts/Writer.cs

@ -500,6 +500,7 @@ namespace Fungus
// Punctuation pause // Punctuation pause
if (left.Length > 0 && if (left.Length > 0 &&
right.Length > 0 &&
IsPunctuation(left.Substring(left.Length - 1)[0])) IsPunctuation(left.Substring(left.Length - 1)[0]))
{ {
yield return StartCoroutine(DoWait(currentPunctuationPause)); yield return StartCoroutine(DoWait(currentPunctuationPause));

Loading…
Cancel
Save