mirror of
https://github.com/godotengine/godot
synced 2024-09-06 02:18:33 +00:00
Return player ID after connecting to Game Center
This commit is contained in:
parent
cd2ffdc672
commit
a84093559c
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue