Exemplo n.º 1
0
 private void OnBlockOfMovesHandler()
 {
     // GAME OVER
     UnsubscribeInput();
     boardInteractor?.FinishBoardInteracting();
     AnalyticsManager.SendScoreAnalytics(boardLevels.CurrentLevel.Level, boardLevels.CurrentScore);
     OnGameFinishedEvent?.Invoke();
 }
Exemplo n.º 2
0
        internal static void TrackGameFinished(bool levelComplete, float score, string level, Dictionary <string, object> eventProperties)
        {
            HasGameStarted = false;
            AnalyticsStorageHelper.UpdateLevel(level);
            if (levelComplete)
            {
                // used to calculate the win rate (for RemoteConfig)
                AnalyticsStorageHelper.IncrementSuccessfulGameCount();
            }

            OnGamePlayed?.Invoke(AnalyticsStorageHelper.GetGameCount(), AnalyticsStorageHelper.UpdateGameHighestScore(score));
            OnGameFinishedEvent?.Invoke(levelComplete, score, level ?? NO_GAME_LEVEL, eventProperties);
        }
Exemplo n.º 3
0
 internal static void OnGameFinished(bool levelComplete, float score, string levelNumber, Dictionary <string, object> eventProperties)
 {
     OnGameFinishedEvent?.Invoke(levelComplete, score, levelNumber ?? NO_GAME_LEVEL, eventProperties);
 }