Пример #1
0
    private void Awake()
    {
        closeButton.onClick.AddListener(() => OnClosePressed?.Invoke());
        createSceneButton.onClick.AddListener(() => OnCreateScenePressed?.Invoke());
        importSceneButton.onClick.AddListener(() => OnImportScenePressed?.Invoke());

        scenesToggle.OnToggleValueChanged        += OnScenesToggleChanged;
        inWorldScenesToggle.OnToggleValueChanged += OnInWorldScenesToggleChanged;
        projectsToggle.OnToggleValueChanged      += OnProjectsToggleChanged;
        landToggle.OnToggleValueChanged          += OnLandToggleChanged;

        contextMenu.Hide();
    }
Пример #2
0
    private void Awake()
    {
        name = "_BuilderProjectsPanel";

        closeButton.onClick.AddListener(() => OnClosePressed?.Invoke());
        createSceneButton.onClick.AddListener(() => OnCreateScenePressed?.Invoke());
        importSceneButton.onClick.AddListener(() => OnImportScenePressed?.Invoke());
        backToMainPanelButton.onClick.AddListener(() => OnBackToMainMenuPressed?.Invoke());
        closeTrigger.OnTriggered += CloseTriggerOnOnTriggered;

        contextMenu.Hide();
        gameObject.SetActive(false);

        for (int i = 0; i < sectionToggles.Length; i++)
        {
            sectionToggles[i].Setup();
        }
    }
Пример #3
0
 void OnRequestContextMenuHide()
 {
     contextMenu.Hide();
 }