Example #1
0
    private void Awake()
    {
        buttonSettings.onClick.AddListener(() => OnSettingsPressed?.Invoke(landId));
        buttonJumpIn.onClick.AddListener(() => OnJumpInPressed?.Invoke(landId));
        buttonEditor.onClick.AddListener(() => OnEditorPressed?.Invoke(landId));

        //NOTE: for MVP we are redirecting user to Builder's page
        OnSettingsPressed += (id) => WebInterface.OpenURL(string.Format(BUILDER_LAND_URL_FORMAT, isEstate ? landId : landCoordinates));
    }
Example #2
0
 private void Awake()
 {
     jumpInButton.onClick.AddListener(() => OnJumpInPressed?.Invoke(sceneData));
     editorButton.onClick.AddListener(() => OnEditorPressed?.Invoke(sceneData));
     contextMenuButton.onClick.AddListener(() => OnContextMenuPressed?.Invoke(sceneData));
 }
 private void EditorButtonPressed()
 {
     OnEditorPressed?.Invoke(sceneData.coords);
     BIWAnalytics.PlayerJumpOrEdit("Scene", "Editor", sceneData.coords, "Scene Owner");
 }