Example #1
0
 void disableAllCharacters()
 {
     DrMichael.disable();
     DrYvette.disable();
     DrArchie.disable();
     DrEdward.disable();
 }
Example #2
0
    public void playCutscene(int num)
    {
        List <string> quotes = getDialogues("Assets\\Resources\\Cutscene\\Cutscene_" + num + ".txt");

        if (Input.GetMouseButtonDown(0))
        {
            if (i < quotes.Count)
            {
                string[] dialog = quotes[i].Split(':');

                if (dialog[0] == "DrMichael")
                {
                    NarrativeDialogue.instance.CloseDBDialogue();
                    DrYvette.disable();
                    DrMichael.Say(dialog[1], bool.Parse(dialog[2]));
                }
                else if (dialog[0] == "DrEdward")
                {
                    NarrativeDialogue.instance.CloseDBDialogue();
                    DrEdward.Say(dialog[1], bool.Parse(dialog[2]));
                }
                else if (dialog[0] == "DrArchie")
                {
                    NarrativeDialogue.instance.CloseDBDialogue();
                    DrArchie.Say(dialog[1], bool.Parse(dialog[2]));
                }
                else if (dialog[0] == "DrYvette")
                {
                    NarrativeDialogue.instance.CloseDBDialogue();
                    DrMichael.disable();
                    DrYvette.Say(dialog[1], bool.Parse(dialog[2]));
                }
                else if (dialog[0] == "DBox")
                {
                    NarrativeDialogue.instance.DBdisplay(dialog[1]);
                    disableAllCharacters();
                    NarrativeDialogue.instance.CloseDialogue();
                }

                if (dialog[0] == "...")
                {
                    disableAllCharacters();
                    NarrativeDialogue.instance.CloseDialogue();
                    NarrativeDialogue.instance.CloseDBDialogue();

                    NarrativeDialogue.instance.isWaitingForUser = true;
                }
            }
            else
            {
                disableAllCharacters();
                NarrativeDialogue.instance.CloseDialogue();
                NarrativeDialogue.instance.CloseDBDialogue();
            }

            i++;
        }
    }
Example #3
0
    // Update is called once per frame
    void Update()
    {
        DrMichael.setPos(new Vector2(0, 0));
        DrEdward.setPos(new Vector2(1, 0));
        DrArchie.setPos(new Vector2(0.5f, 0));
        DrYvette.setPos(new Vector2(0, 0));

        BGFGCineController.Layer bground = controls.background;

        bground.setTexture(t1);

        playCutscene(cutsceneChoice);
    }