From c82db097c628f09378bd808cc17a6b3a42f3f00b Mon Sep 17 00:00:00 2001 From: cyndrdev Date: Sat, 15 May 2021 15:08:58 +0100 Subject: [PATCH] fixed weird delay glitches --- game/Assets/Scripts/Dialogue/ScriptedDialogueTrigger.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/Assets/Scripts/Dialogue/ScriptedDialogueTrigger.cs b/game/Assets/Scripts/Dialogue/ScriptedDialogueTrigger.cs index 1bcd52d..604663e 100644 --- a/game/Assets/Scripts/Dialogue/ScriptedDialogueTrigger.cs +++ b/game/Assets/Scripts/Dialogue/ScriptedDialogueTrigger.cs @@ -76,7 +76,8 @@ public class ScriptedDialogueTrigger : MonoBehaviour if (elapsed > _durations[idx]) { elapsed = 0; - PlayLine(_keys[idx++]); + idx++; + PlayLine(_keys[idx]); } yield return null;