For details about adding and managing achievements, see the achievements management page.

ListAchievements

Idnet.I.ListAchievements();

UnlockAchievement

To unlock an achievement, the application will need the achievement name and key. These must match exactly.

Idnet.AchievementUnlocker au;

au = new Idnet.AchievementUnlocker("Unity Test Achievement 1", "150e06bccaaa9d8422d9"); 
// "Unity Test Achievement 1" is the "Name" of achievement.
// "4b51803aac54decb4d7b" is the "Unlock Key".

Idnet.I.UnlockAchievement (au);

UnlockAchievement with callback

Idnet.I.UnlockAchievement(au, unlockAchievementsException => {
  if (unlockAchievementsException == null)
  {
      Debug.Log("Achievement unlocked sucessfully: " + "\n" + au.Name + "\n" + au.Key);
  }
  else
  {
      Debug.Log(unlockAchievementsException);
  }
});