private void EditorButtonPressed() { if (currentLand != null) { string ownership = currentLand.role == LandRole.OWNER ? "Owner" : "Operator"; BIWAnalytics.PlayerJumpOrEdit("Lands", "Editor", coords, ownership); } OnJumpInPressed?.Invoke(coords); }
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)); }
private void Awake() { jumpInButton.onClick.AddListener(() => OnJumpInPressed?.Invoke(sceneData)); editorButton.onClick.AddListener(() => OnEditorPressed?.Invoke(sceneData)); contextMenuButton.onClick.AddListener(() => OnContextMenuPressed?.Invoke(sceneData)); }
private void JumpInButtonPressed() { OnJumpInPressed?.Invoke(sceneData.coords); BIWAnalytics.PlayerJumpOrEdit("Scene", "JumpIn", sceneData.coords, "Scene Owner"); }