public void Update() { if ((isPlaying && !PlayerAudio.isPlaying) || endOfDialogue) { //NextLine(); scriptLine++; Debug.Log("In here? " + scriptLine); isPlaying = false; endOfDialogue = false; caller.OnClipFinished(); } }
// Update is called once per frame void Update() { if (isPlaying) { timePassed += Time.deltaTime; if (timePassed >= clipLength) { if (!PlayerAudio.isPlaying) { isPlaying = false; clipNum++; Debug.Log("clipNum" + clipNum); scriptLogic.OnClipFinished(); } } } }