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();