private void LoadNextDialogue() { m_current_dialogue = m_dialogues.Dequeue(); m_name_text.text = m_current_dialogue.GetTalkerName(); m_dialogue_image.overrideSprite = m_current_dialogue.GetTalkerImage(); m_dialogue_text.text = m_current_dialogue.NextTextSegment(); }
public void GoToNextText() { if (m_current_dialogue.HasMoreText()) { m_dialogue_text.text = m_current_dialogue.NextTextSegment(); } else { if (m_dialogues.Count > 0) { LoadNextDialogue(); } else { HideDialogueBox(); } } }