public void NextLine() { if (activeLineIndex < dialogue.lines.Length) { DisplayLine(); } else if (dialogue.getFreeRoam()) { UIleft.HideUI(); UIright.HideUI(); activeLineIndex = 0; onDialogueOver(true, null); } else if (!dialogue.getFreeRoam()) { UIleft.HideUI(); UIright.HideUI(); activeLineIndex = 0; eventParty = dialogue.ghostParty; onDialogueOver(false, eventParty); } }
private void SetDialogue(DialogueUI show, DialogueUI hide, string text) { show.Dialogue = text; show.ShowUI(); hide.HideUI(); }
private void SetDialogue(DialogueUI show, DialogueUI hide, string text) { show.ShowUI(); hide.HideUI(); show.Dialogue(text); typingState = TypingState.Typing; }
public void NextLine() { if (activeLineIndex < dialogue.lines.Length) { DisplayLine(); } else if (dialogue.inGameDialogue) { if (dialogue.getFreeRoam()) { UIleft.HideUI(); UIright.HideUI(); activeLineIndex = 0; onDialogueOver(true, null); } else if (!dialogue.getFreeRoam()) { UIleft.HideUI(); UIright.HideUI(); activeLineIndex = 0; eventParty = dialogue.ghostParty; onDialogueOver(false, eventParty); } } else if (!dialogue.inGameDialogue) { speakerLeft.SetActive(false); speakerRight.SetActive(false); typingState = TypingState.Finished; audio.volume = 0; StartCoroutine(scene.LoadNextScene(dialogue.nextSceneName)); } }