- Home /
Question by
Ted-Brown · Jun 12, 2014 at 12:37 AM ·
iosu3dxtachievements
U3DXT: ResetAchievements method not visible?
I am trying to access the ResetAchievements method documented [here][1], but it doesn't seem to be available.
Here's a screenshot of Monodevelop that explains it, I think:
![alt text][2]
As you can see: no ResetAchievements is listed.
er...
what you can't see is the definition of "achievement". Here's the code:
GKAchievement achievement = new GKAchievement("test");
achievement.
Thanks in advance if you can help. [1]: http://u3dxt.com/api/html/M_U3DXT_iOS_Native_GameKit_GKAchievement_ResetAchievements.htm [2]: /storage/temp/27608-screen+shot+2014-06-11+at+5.30.21+pm.png
screen shot 2014-06-11 at 5.30.21 pm.png
(45.2 kB)
Comment
Answer by u3dxt · Jun 12, 2014 at 02:18 AM
Hi Ted, this is a static method. So, you can call it like this:
GKAchievement.ResetAchievements(delegate(NSError error) {
if (error != null) {
// handle error
} else {
// done
}
});