From e71991c0607ad8e54d569807740502fab15504ad Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 25 Jun 2014 10:04:59 +0100 Subject: [PATCH] Fixed text with Rich Text tags not displaying --- Assets/Fungus/Scripts/Dialog.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/Fungus/Scripts/Dialog.cs b/Assets/Fungus/Scripts/Dialog.cs index 28766af8..343ad223 100644 --- a/Assets/Fungus/Scripts/Dialog.cs +++ b/Assets/Fungus/Scripts/Dialog.cs @@ -283,8 +283,6 @@ namespace Fungus float continueTimer; bool instantCompleteText; - GameObject typingAudio; - // Cached versions of scaled style objects GUIStyle cachedBoxStyle; GUIStyle cachedNameTextStyle; @@ -391,10 +389,11 @@ namespace Fungus sayText = _sayText; - // Hack to avoid displaying partial color tag text if (_sayText.Contains("<")) { + // Hack to avoid displaying partial color tag text - write instantly displayedSayText = _sayText; + dialogMode = DialogMode.Waiting; } else { @@ -413,6 +412,8 @@ namespace Fungus yield break; } + GameObject typingAudio = null; + if (writingSound != null) { typingAudio = new GameObject();