fixed weird delay glitches

This commit is contained in:
cyndrdev 2021-05-15 15:08:58 +01:00
parent ec24afb667
commit c82db097c6
1 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,8 @@ public class ScriptedDialogueTrigger : MonoBehaviour
if (elapsed > _durations[idx])
{
elapsed = 0;
PlayLine(_keys[idx++]);
idx++;
PlayLine(_keys[idx]);
}
yield return null;