示例#1
0
 void disableAllCharacters()
 {
     DrMichael.disable();
     DrYvette.disable();
     DrArchie.disable();
     DrEdward.disable();
 }
示例#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++;
        }
    }