public void StartTextSection(string text) { if (dialogType == DialogType.Text) { fullNPCString = text; currentTime = 0; placeInString = 0; duration = durationPerText * fullNPCString.Length; dialogTrigger.PlayStringLipsynced(text, duration); TextInAction = true; if (!dialogSource.isPlaying) { dialogSource.Play(); } lastAudio = 0; } else { NPCText.text = text; } }