Пример #1
0
        public void Handle(DialogueEvent @event)
        {
            _model = new DialogueModel(@event.Data);

            _view.OnBeginDialogue();
            NextDialogue();
        }
Пример #2
0
        public void NextDialogue()
        {
            if (_model == null)
            {
                return;
            }

            if (_model.HasNextDialogue)
            {
                _view.OnNextDialogue(_model.GetDialogue());
            }
            else
            {
                _model = null;
                _view.OnDialogueFinish();
                _eventAggregator.Publish(new DialogueEndEvent());
            }
        }