Created
October 23, 2011 17:30
-
-
Save clausjoergensen/1307612 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void AchievementContext_AchievementsUnlocked(object sender, AchievementEventArgs args) | |
{ | |
if (args.UnlockedAchievements.Any()) | |
{ | |
Debug.WriteLine(string.Format("Achievements unlocked: {0}", | |
string.Join(", ", args.UnlockedAchievements.Select(a => "[" + a.Name + "]")))); | |
Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() => | |
{ | |
AchievementNotificationBox.ShowAchievements(args.UnlockedAchievements); | |
})); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment