예제 #1
0
 public void Update()
 {
     if ((isPlaying && !PlayerAudio.isPlaying) || endOfDialogue)
     {
         //NextLine();
         scriptLine++;
         Debug.Log("In here? " + scriptLine);
         isPlaying     = false;
         endOfDialogue = false;
         caller.OnClipFinished();
     }
 }
예제 #2
0
    // 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();
                }
            }
        }
    }