public void Handle(DialogueEvent @event) { _model = new DialogueModel(@event.Data); _view.OnBeginDialogue(); NextDialogue(); }
public void NextDialogue() { if (_model == null) { return; } if (_model.HasNextDialogue) { _view.OnNextDialogue(_model.GetDialogue()); } else { _model = null; _view.OnDialogueFinish(); _eventAggregator.Publish(new DialogueEndEvent()); } }