Example #1
0
    public void ChangeDialogueBox(int index)
    {
        if (index == 0)
            isQuestion = false;
        else
            isQuestion = true;

        currentDialogueBox = dialogueBoxes [index];

        foreach(C_DialogueBox dBox in dialogueBoxes)
        {
            if(dBox == currentDialogueBox)
                dBox.gameObject.SetActive(true);
            else
                dBox.gameObject.SetActive(false);
        }
    }
Example #2
0
 void Start()
 {
     characterAnimatorLeft = characterImageLeft.gameObject.GetComponent<Animator> ();
     characterAnimatorRight = characterImageRight.gameObject.GetComponent<Animator> ();
     currentDialogueBox = dialogueBoxes [0];
 }