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