private void OnFirstInteraction(object sender, OnFirstInteraction eventArgs) { foreach (IAnalytics analytics in this.analytics) { analytics.OnFirstInteraction(eventArgs.FirstInteraction); } }
private void OnOpenLeaderboard(object sender, OnOpenLeaderboard eventargs) { if (Player.HasFirstInteraction()) { return; } Player.SetFirstInteraction(true); OnFirstInteraction firstInteraction = new OnFirstInteraction(FirstInteraction.OpenLeaderboard); EventManager.Dispatch(firstInteraction); }
private void OnLightSwitch(object sender, OnLightSwitch eventargs) { if (Player.HasFirstInteraction()) { return; } Player.SetFirstInteraction(true); OnFirstInteraction firstInteraction = new OnFirstInteraction(FirstInteraction.SwitchLight); EventManager.Dispatch(firstInteraction); }
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(); }