示例#1
0
 public void FirstInteraction_ActionIdTest(
     [Values("test_user_action", "", null)] string actionId
     )
 {
     Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.FirstInteraction(actionId));
     EvaluateAnalyticsResult(m_Result);
 }
示例#2
0
        public void FirstInteraction_CustomDataTest()
        {
            var actionId = "test_user_action";

            Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.FirstInteraction(actionId, m_CustomData));
            EvaluateCustomData(m_CustomData);
            EvaluateAnalyticsResult(m_Result);
        }
示例#3
0
 // Use this for initialization
 void Start()
 {
     controller     = GetComponent <CharacterController>();
     playerAnimator = GetComponent <PlayerAnimator>();
     coinScript     = coinManager.GetComponent <CoinManager>();
     scoreManager   = GetComponent <ScoreManager>();
     //Z
     currentSpeedZ = speedZ;
     AnalyticsEvent.FirstInteraction();
 }
        private void UpdateFirstMouseDown()
        {
            if (!Input.GetMouseButtonDown(0))
            {
                return;
            }

            AnalyticsEvent.FirstInteraction();

            enabled = false;
        }
示例#5
0
    public void StartGame()
    {
        if (PlayerData.instance.ftueLevel == 0)
        {
            PlayerData.instance.ftueLevel = 1;
            PlayerData.instance.Save();
#if UNITY_ANALYTICS
            AnalyticsEvent.FirstInteraction("start_button_pressed");
#endif
        }

#if UNITY_PURCHASING
        var module = StandardPurchasingModule.Instance();
#endif
        SceneManager.LoadScene("main");
    }
示例#6
0
    private async Task OnWin()
    {
        AnalyticsManager.Event(() =>
        {
            AnalyticsEvent.LevelComplete(
                this.Context.data.activeWarehouseData.NormalizedName,
                new Dictionary <string, object>
            {
                { "id", this.Context.data.activeWarehouseData.localIdentifier },
                { "timeMs", this.timeMs },
                { "moveCount", this.Context.data.RecentMovementHistory.Count }
            }
                );

            // very first completion
            if (!this.Context.data.activeWarehouseLevelMeta.IsCompleted &&
                this.Context.data.activeWarehouseData.localIdentifier.Equals(Notices.LevelNotices.First().localIdentifier))
            {
                AnalyticsEvent.FirstInteraction("completedLevel");
            }
        });

        this.Context.SetRunning(false);
        // var activeMeta = this.Context.data.activeWarehouseLevelMeta;
        // activeMeta.Update(this.Context.data, this);
        this.Context.data.UpdateLevelMetaData(this.Context.data, this);
        var activeMeta = this.Context.data.activeWarehouseLevelMeta;

        if (!this.Context.data.enableGameplayEditor)
        {
            var meta = this.File.Get <WarehouseManager.MetaData>();
            meta.levelData.RemoveAll(x => x.Identifier == activeMeta.Identifier);
            meta.levelData.Add(activeMeta);
            this.File.Save(meta);
        }
        await this.warehouseManager.AnimateItems(() =>
        {
            this.PlaySfx();
            this.PromptWin();
            this.OnWinEvent.Invoke(this);
        });
    }
示例#7
0
    public void TutorialCall()
    {
        AnalyticsResult result = AnalyticsEvent.FirstInteraction();

        Debug.Log("frist" + result);

        result = AnalyticsEvent.TutorialStart("Beginner");
        Debug.Log("start" + result);

        result = AnalyticsEvent.TutorialStep(1, "Beginner");
        Debug.Log("step1" + result);

        result = AnalyticsEvent.TutorialStep(2, "Beginner");
        Debug.Log("step2" + result);

        result = AnalyticsEvent.TutorialStep(3, "Beginner");
        Debug.Log("step3" + result);

        result = AnalyticsEvent.TutorialComplete("Beginner");
        Debug.Log("complete" + result);
    }
    public void StartGame()
    {
#if PLATFORM_ANDROID
        if (!Permission.HasUserAuthorizedPermission(Permission.FineLocation))
        {
            Permission.RequestUserPermission(Permission.FineLocation);
        }
#endif

        if (PlayerData.instance.ftueLevel == 0)
        {
            PlayerData.instance.ftueLevel = 1;
            PlayerData.instance.Save();
#if UNITY_ANALYTICS
            AnalyticsEvent.FirstInteraction("start_button_pressed");
#endif
        }

#if UNITY_PURCHASING
        var module = StandardPurchasingModule.Instance();
#endif
        SceneManager.LoadScene("main");
    }
        public void FirstInteraction()
        {
            AnalyticsResult analyticsResult = AnalyticsEvent.FirstInteraction();

            DebugLog($"[ANALYTICS][FTUE] [{analyticsResult}] FirstInteraction");
        }
示例#10
0
    public string first_interaction02()
    {
        var status = AnalyticsEvent.FirstInteraction("action_id_server");

        return(status.ToString());
    }
示例#11
0
    public string first_interaction01()
    {
        var status = AnalyticsEvent.FirstInteraction();

        return(status.ToString());
    }
示例#12
0
 public void Play()
 {
     AnalyticsEvent.FirstInteraction();
     sceneFader.FadeToScene(gameSceneName);
 }
示例#13
0
 public void FirstLevel()
 {
     AnalyticsEvent.FirstInteraction();
     OnStartLevel(LevelIndex, false);
     SceneManager.LoadScene(2);
 }
示例#14
0
 public void FirstInteraction_NoArgsTest()
 {
     Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.FirstInteraction());
     EvaluateAnalyticsResult(m_Result);
 }