Example #1
0
    public void StartDialogue(_Dialogue dialogue)
    {
        nameText.text = dialogue.name;
        sentences.Clear();

        foreach (string sentence in dialogue.sentences)
        {
            sentences.Enqueue(sentence);
        }
        DisplayNextSentence();
    }
    public void StartDialogue(_Dialogue dialogue)
    {
        currentDialogue = dialogue;
        dialoguebox.SetActive(true);

        nameText.text = dialogue.name;
        sentences.Clear();
        skillbox.SetActive(false);

        foreach (string sentence in dialogue.sentences)
        {
            sentences.Enqueue(sentence);
        }
        DisplayNextSentence();
    }
Example #3
0
    public void Start()
    {
        fader = GameObject.Find("Fader").GetComponent <Fades>();

        go_back              = new _Dialogue[2];
        go_back[0]           = new _Dialogue();
        go_back[0].name      = "D.A.-Z";
        go_back[0].sentences = new string[] {
            "Hey Bud, I don't think you've collected everything on this floor",
            "I'd appreciate it if you collected as much as you can",
            "I'm counting on you!"
        };
        go_back[1]           = new _Dialogue();
        go_back[1].name      = "Bud";
        go_back[1].sentences = new string[] {
            "Don't worry D.A.-Z, I'll put you back together."
        };
    }