Exemple #1
0
    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);
 }
Exemple #3
0
 protected void RequestOpenSection(SectionsController.SectionId id)
 {
     OnRequestOpenSection?.Invoke(id);
 }