protected override void OnLoad(EventArgs e) { base.OnLoad(e); SingleProfileModel model = new SingleProfileModel(); UserPresenter ulpresenter = new UserPresenter(this.UsersListView, this.AggiungiButton, model); PersonalDetailsPresenter pdpresenter = new PersonalDetailsPresenter(this.ProfileDetailsPanel, this.ProfileMenuPanel, this.TargetWeightLabel, model); VersionPresenter vpresenter = new VersionPresenter(this.VersionLabel); MenuPresenter mpresenter = new MenuPresenter(this.DietUpperPanel, this.DietPanel, this.DietButtonsPanel, model); }
protected override void OnAwake() { _version = VersionPresenter.Create(); _version.text.Subscribe(x => versionLabel.text = x); }