Browse Source

#36 Added StopAllCoroutines() to Dialog.Clear()

master
chrisgregan 10 years ago
parent
commit
8dc9d0e93d
  1. 11
      Assets/Fungus/Dialog/Scripts/Dialog.cs

11
Assets/Fungus/Dialog/Scripts/Dialog.cs

@ -353,6 +353,17 @@ namespace Fungus
protected virtual void Clear()
{
ClearStoryText();
// Reset control variables
currentSpeed = 60;
currentPunctuationPause = 0.25f;
boldActive = false;
italicActive = false;
colorActive = false;
colorText = "";
// Kill any active write coroutine
StopAllCoroutines();
}
protected virtual void ClearStoryText()

Loading…
Cancel
Save