Increment / Unlock achievement
Use these function whenever you want to increment or unlock an achievement
Namespace
To make the code cleaner, you have to access the Achievements Manager using this line
using IntenseNation.UltimateInGameAchievements;
Increment Achievement
This function increments the steps required by 1, if the steps reaches the target value, the achievements gets unlocked
Achievement ID only
AchievementsManager.instance.IncrementAchievement(string id);
Achievement ID and increment value
AchievementsManager.instance.IncrementAchievement(string id, , int value);
Unlock Achievement
You can force an incremental achievement to be unlocked immediately by using this function
AchievementsManager.instance.UnlockAchievement(string id);
Last modified: 05 November 2023