Beispiel #1
0
 private void OnFirstInteraction(object sender, OnFirstInteraction eventArgs)
 {
     foreach (IAnalytics analytics in this.analytics)
     {
         analytics.OnFirstInteraction(eventArgs.FirstInteraction);
     }
 }
Beispiel #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);
    }
Beispiel #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);
    }
Beispiel #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();
    }