Пример #1
0
    IEnumerator FinishCliffDialog()
    {
        StartDodoTalking();
        for (int i = 0; i < banjoDialogClips.Length; i++)
        {
            if (stopPlaying)
            {
                stopPlaying = true;
                break;
            }
            if (i == 1)
            {
                StopDodoTalking();
                animator.SetBool("playBanjo", true);
            }
            audSrc.clip = banjoDialogClips[i];
            audSrc.Play();

            yield return(new WaitForSeconds(banjoDialogClips[i].length));

            if (i == 1)
            {
                animator.SetBool("playBanjo", false);
                lionScript.WakeUp();
                ladderScript.CollectLadder();
                StartDodoTalking();
            }
        }
        StopDodoTalking();

        ShowDamButton();
    }