Ver Fonte

Return player ID after connecting to Game Center

Ruslan Mustakov há 8 anos atrás
pai
commit
a84093559c
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      platform/iphone/game_center.mm

+ 1 - 0
platform/iphone/game_center.mm

@@ -89,6 +89,7 @@ Error GameCenter::connect() {
 			ret["type"] = "authentication";
 			if (player.isAuthenticated) {
 				ret["result"] = "ok";
+				ret["player_id"] = player.playerID;
 				GameCenter::get_singleton()->connected = true;
 			} else {
 				ret["result"] = "error";