updates for android.

This commit is contained in:
Bryce Covert
2018-02-17 09:09:33 -08:00
parent 8e49a72350
commit 477d3eeeab
8 changed files with 33 additions and 5 deletions

View File

@@ -67,6 +67,19 @@ public class GameCenter {
});
}
public void show(final UIViewController d) {
GKGameCenterViewController controller= new GKGameCenterViewController();
controller.setGameCenterDelegate(new GKGameCenterControllerDelegateAdapter() {
@Override
public void didFinish(GKGameCenterViewController g) {
d.dismissViewController(true, null);
System.out.println("achievements done");
}
});
System.out.println("showing achievements");
d.presentViewController(controller, true, null);
}
/** Report an achievement completed (100 as percentComplete)
*
* @param identifier */