Ejemplo n.º 1
0
 private void wakeUp()
 {
     // get background music to silence it
     GameObject.Find("BackgroundMusic").GetComponent <AudioSource>().Stop();
     /* Say "Link..." and play sound / increment dialogue */
     GNPC.DialogueScript.ShowBox(GNPC.name, GNPC.Dialogue[0].text, GNPC.GetComponent <SpriteRenderer>().sprite);
     GNPC.NPCExternal.clip = GNPC.DialogueScript.DialogueDoneSound;
     GNPC.NPCExternal.Play();
     GNPC.DialogueCount = 1;
 }
Ejemplo n.º 2
0
        IEnumerator InitiateScene()
        {
            yield return(StartCoroutine(SF.FadeToBlack()));

            Player.transform.position = playerPoint1.transform.position;
            PlayerAnim.SetFloat("input_x", 0f);
            PlayerAnim.SetFloat("input_y", 1f);
            PM.canMove = false;
            yield return(new WaitForSeconds(2));

            Music.clip = EndMusic;
            Music.Play();
            Girl.transform.position = girlPoint1.transform.position;
            GameObject.Instantiate(Resources.Load("Triforce"), triforcePoint.position, Quaternion.identity);

            yield return(StartCoroutine(SF.FadeToClear()));

            GNPC.DialogueScript.ShowBox(GNPC.name, GNPC.Dialogue[0].text, GNPC.GetComponent <SpriteRenderer>().sprite);
            GNPC.NPCExternal.clip = GNPC.DialogueScript.DialogueDoneSound;
            GNPC.NPCExternal.Play();
            GNPC.DialogueCount = 1;
            StartCoroutine(WaitForKeyDown(KeyCode.Space));
        }