Example #1
0
    public MessagingService(IStoryPresenter storyPresenter, IMessageListPresenter messageListPresenter)
    {
        this.storyPresenter       = storyPresenter;
        this.messageListPresenter = messageListPresenter;

        this.storyPresenter.Closed += OnStoryPresenterClosed;
    }
Example #2
0
 public void SetupOption(Choice choice, IStoryPresenter storyPresenter)
 {
     _choice = choice;
     _text.SetText(choice.text);
     _button.onClick.AddListener(() =>
     {
         storyPresenter.ReceiveChoice(_choice);
     });
 }
Example #3
0
 // TODO: review if this is a valid option to inject presenter
 public void InjectPresenter(IStoryPresenter storyPresenter)
 {
     this.storyPresenter = storyPresenter;
 }
Example #4
0
 public void InjectPresenter(IStoryPresenter storyPresenter)
 {
     presenter = storyPresenter;
     optionsPanel.InjectPresenter(presenter);
     backButton.onClick.AddListener(() => presenter.ReceiveCloseAction());
 }