public void Ext() { DialogueHelper dialogue = new DialogueHelper(); foreach (var t in Text) { switch (t.type) { case DialogeType.general: dialogue.AddNextText(t.text, this); break; case DialogeType.choice: dialogue.AddChoiceText(t.question, t.answer); break; case DialogeType.aside: dialogue.AddAside(t.text); break; default: break; } } }