void goNextLine() { if (!curDialogue.IsThisTheFinlelLine && curDialogue.nextLine && isOn) { if (Input.GetKeyDown(KeyCode.E)) { curDialogue = curDialogue.nextLine; StartCoroutine(startDialog()); } } }
void goPreLine() { if (!curDialogue.IsThisTheFirstLine && curDialogue.preLine && isOn) { if (Input.GetKeyDown(KeyCode.Q)) { curDialogue = curDialogue.preLine; StartCoroutine(startDialog()); } } }
private void Start() { curDialogue = startDialogueFile; textBox.SetActive(false); }