Esempio n. 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();
    }
Esempio n. 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();
        }
    }