public DialogueScreen(M_Rectangle screenView) { this.screenView = screenView; dialogue = GetDialogue().GetEnumerator(); dialogue.MoveNext(); box = new DialogueBox(screenView, dialogue.Current, textColor); }
public override bool Update(GameTime gameTime) { if (!box.Update(gameTime)) { if (!dialogue.MoveNext()) { return(false); } box.Dispose(); box = new DialogueBox(screenView, dialogue.Current, textColor); } return(true); }