Created
December 14, 2012 00:54
-
-
Save legumbre/4281559 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gc.authenticate_local_user(function (error) | |
if (not error) then | |
klog.info ("Game Center authentication OK!") | |
rr_gc.user_authenticated = gc.local_user_id() | |
-- uncomment the next line to reset GC achievements on launch | |
-- gc.reset_achievements(function () print "achievements reset ok!" end) | |
else | |
rr_gc.user_authenticated = false | |
klog.warning("Game Center authentication failed: "..error) | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment