Beispiel #1
0
 public void StartDialogue(ObjectDialogue dialogue)
 {
     animator.SetBool("IsOpen", true);
     //Debug.Log("aaaa" + dialogue.name);
     titleText.text = dialogue.name;
     sentences.Clear();
     foreach (string sentence in dialogue.sentences)
     {
         sentences.Enqueue(sentence);
     }
     DisplayNext();
 }
Beispiel #2
0
    public void StartDialogue(ObjectDialogue dialogue)
    {
        nameText.text = dialogue.name;

        sentences.Clear();

        foreach (string sentence in dialogue.sentences)
        {
            sentences.Enqueue(sentence);
        }

        DisplayNextSentence();
    }
    public void StartDialogue(ObjectDialogue dialogue)
    {
        animator.SetBool("isOpen", true);

        nameText.text = dialogue.name;

        sentences.Clear();

        foreach (string sentence in dialogue.sentences)
        {
            sentences.Enqueue(sentence);
        }

        DisplayNextSentence();
    }
Beispiel #4
0
    public void StartDialogue(ObjectDialogue dialogue)
    {
        OIP.done = false;
        //intChoice1.text = dialogue.options [0];
        //intChoice2.text = dialogue.options [1];
//		choice3.text = dialogue.options [2];
        tempDia = dialogue;
        sentences.Clear();
        objectText.text = dialogue.name;
        foreach (string sentence in dialogue.sentences)
        {
            sentences.Enqueue(sentence);
        }

        string firstSentence = sentences.Dequeue();

        StopAllCoroutines();
        StartCoroutine(TypeSentence(firstSentence));
        //if (sentences.Count == 0){
        //EnableButtons ();
        //}
    }