From afba04585d31a5a7bfa194a499d4ac402c4cd404 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Thu, 4 Sep 2014 10:29:05 +0100 Subject: [PATCH] Fixed dialog hanging on empty say text --- Assets/Fungus/Dialog/Scripts/Dialog.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Fungus/Dialog/Scripts/Dialog.cs b/Assets/Fungus/Dialog/Scripts/Dialog.cs index 33452a6c..e3256ce7 100644 --- a/Assets/Fungus/Dialog/Scripts/Dialog.cs +++ b/Assets/Fungus/Dialog/Scripts/Dialog.cs @@ -139,6 +139,10 @@ namespace Fungus.Script if (glyphs.Count == 0) { + if (onWritingComplete != null) + { + onWritingComplete(); + } yield break; }