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