Achievements
Achievements in HTML5 games are an exciting and rewarding feature that adds an extra layer of engagement for players. They serve as milestones, celebrating a player's progress, skill, and dedication.
Bridge.achievements.isSupportedBridge.achievements.isGetListSupportedBridge.payments.isNativePopupSupportedUnlock achievement
private void Start()
{
var options = new Dictionary<string, object>();
switch (Bridge.platform.id)
{
case "y8":
options.Add("achievement", "ACHIEVEMENT_NAME");
options.Add("achievementkey", "ACHIEVEMENT_KEY");
break;
case "lagged":
options.Add("achievement", "ACHIEVEMENT_ID");
break;
}
Bridge.achievements.Unlock(options, OnAchievementsUnlockCompleted);
}
private void OnAchievementsUnlockCompleted(bool success, Dictionary<string, string> result)
{
Debug.Log(success);
}Last updated