CloudOnce v2.7.5
Unified Game Services API
CloudOnce.Internal.AchievementsBridge Class Reference

Provides a bridge between C# code and the CloudOnceAchievements iOS plug-in. More...

Static Public Member Functions

static void LoadAchievements (LoadAchievementsDelegate callback)
 Loads the local player’s current progress information from Game Center. Should be called immediately after the player is authenticated. More...
 
static void UnlockAchievement (string achievementId, BoolCallbackDelegate callback)
 Unlocks an achievement. More...
 
static void RevealAchievement (string achievementId, BoolCallbackDelegate callback)
 Reveals a hidden achievement. More...
 
static void IncrementAchievement (string achievementId, float progress, BoolCallbackDelegate callback)
 Increments an achievement. More...
 

Detailed Description

Provides a bridge between C# code and the CloudOnceAchievements iOS plug-in.

Member Function Documentation

◆ IncrementAchievement()

static void CloudOnce.Internal.AchievementsBridge.IncrementAchievement ( string  achievementId,
float  progress,
BoolCallbackDelegate  callback 
)
inlinestatic

Increments an achievement.

Parameters
achievementIdThe unique identifier for the achievement. Is defined in the developer console.
progressThe current player progress, as a percentage. 100 unlocks the achievement. 0 reveals a hidden achievement.
callbackCallback will be true if the achievement is successfully incremented, false if there was a problem.

◆ LoadAchievements()

static void CloudOnce.Internal.AchievementsBridge.LoadAchievements ( LoadAchievementsDelegate  callback)
inlinestatic

Loads the local player’s current progress information from Game Center. Should be called immediately after the player is authenticated.

Parameters
callbackCallback will be true if the achievements are successfully loaded, false if there was a problem.

◆ RevealAchievement()

static void CloudOnce.Internal.AchievementsBridge.RevealAchievement ( string  achievementId,
BoolCallbackDelegate  callback 
)
inlinestatic

Reveals a hidden achievement.

Parameters
achievementIdThe unique identifier for the achievement. Is defined in the developer console.
callbackCallback will be true if the achievement is successfully revealed, false if there was a problem.

◆ UnlockAchievement()

static void CloudOnce.Internal.AchievementsBridge.UnlockAchievement ( string  achievementId,
BoolCallbackDelegate  callback 
)
inlinestatic

Unlocks an achievement.

Parameters
achievementIdThe unique identifier for the achievement. Is defined in the developer console.
callbackCallback will be true if the achievement is successfully unlocked, false if there was a problem.

The documentation for this class was generated from the following file: