Example #1
0
 private void OnFirstInteraction(object sender, OnFirstInteraction eventArgs)
 {
     foreach (IAnalytics analytics in this.analytics)
     {
         analytics.OnFirstInteraction(eventArgs.FirstInteraction);
     }
 }
Example #2
0
    private void OnOpenLeaderboard(object sender, OnOpenLeaderboard eventargs)
    {
        if (Player.HasFirstInteraction())
        {
            return;
        }
        Player.SetFirstInteraction(true);
        OnFirstInteraction firstInteraction = new OnFirstInteraction(FirstInteraction.OpenLeaderboard);

        EventManager.Dispatch(firstInteraction);
    }
Example #3
0
    private void OnLightSwitch(object sender, OnLightSwitch eventargs)
    {
        if (Player.HasFirstInteraction())
        {
            return;
        }
        Player.SetFirstInteraction(true);
        OnFirstInteraction firstInteraction = new OnFirstInteraction(FirstInteraction.SwitchLight);

        EventManager.Dispatch(firstInteraction);
    }
Example #4
0
    private void OnTriggerClick(object sender, OnTriggerClick eventArgs)
    {
        if (!Player.HasFirstInteraction())
        {
            Player.SetFirstInteraction(true);
            OnFirstInteraction firstInteraction = new OnFirstInteraction(FirstInteraction.Play);
            EventManager.Dispatch(firstInteraction);
        }

        if (!this.isSpeedRunMode || this.speedRunStopWatch != null)
        {
            return;
        }

        this.speedRunStopWatch = new Stopwatch();
        this.speedRunStopWatch.Start();
    }