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); } }
void Start() { characterAnimatorLeft = characterImageLeft.gameObject.GetComponent<Animator> (); characterAnimatorRight = characterImageRight.gameObject.GetComponent<Animator> (); currentDialogueBox = dialogueBoxes [0]; }