void OnAchievement(AchievementSucessEvent e) { Dictionary <string, object> UserProperties = new Dictionary <string, object>(); UserProperties.Add("EAchievement", e.Title); UserProperties.Add("ERun", G.Sys.dataMaster.Death); _amplitude.logEvent("Achievement", UserProperties); }
void AchievementSucess(AchievementSucessEvent e) { G.Sys.dataMaster.UnlockedAchievements++; Window.SetActive(true); TitleZone.text = e.Title; RewardZone.text = e.Reward.ToString(); _windowTimer = WindowDuration; Event <ProgressAchievementEvent> .Broadcast(new ProgressAchievementEvent(AchievementBigType.OneRun, AchievementSpecificType.AchievementsCount, G.Sys.dataMaster.UnlockedAchievements, false)); }