private void OnAchievementsUnlocked(object sender, AchievementEventArgs e) { if (AchievementsUnlocked != null) { AchievementsUnlocked(sender, e); } }
private static void AchievementContext_AchievementsUnlocked(object sender, AchievementEventArgs args) { System.Console.WriteLine("Unlocked: " + string.Join(", ", args.UnlockedAchievements.Select(a => a.Name))); notificationBox.ShowAchievements(args.UnlockedAchievements); }