Exemplo n.º 1
0
    private void Awake()
    {
        jumpInButton.onClick.AddListener(JumpInButtonPressed);
        editorButton.onClick.AddListener(EditorButtonPressed);
        contextMenuButton.onClick.AddListener(() => OnContextMenuPressed?.Invoke(sceneData, this));
        settingsButton.onClick.AddListener(() => OnSettingsPressed?.Invoke(sceneData));

        editorLockedGO.SetActive(false);
        editorLockedTooltipGO.SetActive(false);
    }
Exemplo n.º 2
0
 private void Awake()
 {
     jumpInButton.onClick.AddListener(() => OnJumpInPressed?.Invoke(sceneData));
     editorButton.onClick.AddListener(() => OnEditorPressed?.Invoke(sceneData));
     contextMenuButton.onClick.AddListener(() => OnContextMenuPressed?.Invoke(sceneData));
 }