public DialogOption GetNextDialogState() { if (currentText.answerA != -1) { if (currentText.interactive) { _dialogOption = DialogOption.Interactive; } else { _dialogOption = DialogOption.Normal; } } else { _dialogOption = DialogOption.EndDialog; } return(_dialogOption); }
public void NewLineDialog(DialogText text) { if (text == null) { AllTextVoid(); _dialogOption = DialogOption.EndDialog; return; } StopAllCoroutines(); currentText = text; AllTextVoid(); selectionImage.enabled = currentText.question; if (GetQuestionState()) { answerA.text = _gameManager.GetDialog(currentText.answerA).dialog; answerB.text = _gameManager.GetDialog(currentText.answerB).dialog; } StartCoroutine(NewLine()); }