public SectionScenesController() { var prefab = Resources.Load <SectionScenesView>("BuilderProjectsPanelMenuSections/SectionScenesView"); view = Object.Instantiate(prefab); view.btnProjectsViewAll.onClick.AddListener(() => OnRequestOpenSection?.Invoke(SectionId.SCENES_PROJECT)); view.btnInWorldViewAll.onClick.AddListener(() => OnRequestOpenSection?.Invoke(SectionId.SCENES_DEPLOYED)); sceneSearchHandler.OnResult += OnSearchResult; }
private void OnOpenSectionRequested(SectionId sectionId) { OnRequestOpenSection?.Invoke(sectionId); }
protected void RequestOpenSection(SectionsController.SectionId id) { OnRequestOpenSection?.Invoke(id); }