Beispiel #1
0
    void Start()
    {
        //add Yarn program to dialogRunner
        dialogRunner.Dialogue.SetProgram(dialog.GetProgram());
        dialogRunner.AddStringTable(dialog);

        //expose Die() function to Yarn script
        dialogRunner.AddCommandHandler("die", Die);

        rigidbody = GetComponent <Rigidbody>();
    }
Beispiel #2
0
 void Start()
 {
     dialogueRunner.AddCommandHandler("fadein", FadeIn);
     dialogueRunner.AddCommandHandler("exittomainmenu", FadeOutExit);
     dialogueRunner.AddCommandHandler("fadeout", FadeOut);
 }