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