Provides a bridge between C# code and the CloudOnceAchievements
iOS plug-in.
More...
|
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...
|
|
Provides a bridge between C# code and the CloudOnceAchievements
iOS plug-in.
◆ IncrementAchievement()
static void CloudOnce.Internal.AchievementsBridge.IncrementAchievement |
( |
string |
achievementId, |
|
|
float |
progress, |
|
|
BoolCallbackDelegate |
callback |
|
) |
| |
|
inlinestatic |
Increments an achievement.
- Parameters
-
achievementId | The unique identifier for the achievement. Is defined in the developer console. |
progress | The current player progress, as a percentage. 100 unlocks the achievement. 0 reveals a hidden achievement. |
callback | Callback 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
-
callback | Callback 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
-
achievementId | The unique identifier for the achievement. Is defined in the developer console. |
callback | Callback 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
-
achievementId | The unique identifier for the achievement. Is defined in the developer console. |
callback | Callback 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:
- Assets/Extensions/CloudOnce/Internal/AchievementsBridge.cs