public void OnSkillListItemLearnBtnClick(Evt evt) { var skillId = (int)evt.Data; AnalyticsUtils.AddCategorizedEventParam("Id", skillId); LogEvent("Skill.Learn"); }
private void LogEvent(string name) { PlayerState playerState = playerStateStorage.Get(); AnalyticsUtils.AddCategorizedEventParam( "Level", playerState == null ? 0 : playerState.Level); AnalyticsUtils.LogEvent(name); }
private void AddPlayerLevelCompletionPercentage() { int level = playerStateStorage.Get().Level; int levelCompletionScore = levelSettingsStorage.Get(level).CompletionScore; int levelCompletionPercentage = player.Score * 10 / levelCompletionScore; AnalyticsUtils.AddCategorizedEventParam( "Player.LevelCompletionPercentage", levelCompletionPercentage); }
private void AddPlayerActionsPerMinuteRank() { AnalyticsUtils.AddCategorizedEventParam( "Player.ActionsPerMinuteRank", player.ActionsPerMinuteRank); }