private bool InputDialogueOption(int optionIndex) { var result = true; var flag = true; if (optionIndex >= 0) { var selectedOption = _currentDialogueBox.OptionFromUIIndex(optionIndex); ContinueToNextNode(selectedOption); } else if (!_currentNode.HasNext()) { ContinueToNextNode(); } if (_currentNode == null) { _currentDialogueBox = null; flag = false; result = false; } else { _currentDialogueBox = DisplayDialogueBox2(); } if (flag) { Locator.GetPlayerAudioController().PlayDialogueAdvance(); } return(result); }