You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not clear what is the role of the function is_player_connected(), I assumed it is used to check if the player is already connected or not but It always returns a null.
There must be a way to check if the sign-in to Google Play Games Services was successful and if the player is connected, I tried the _on_player_is_already_connected but it is never called.
The text was updated successfully, but these errors were encountered:
As it was figured out by @hlfstr here: #5 (comment)
the callback for _on_player_is_already_connected() requires 2 parameters. So the following will work:
func _on_player_is_already_connected(status : bool, id : String) -> void:
print("hello from _on_player_is_already_connected\nStatus: %s | ID: %s" % [status,id])
@cgisca should update README.md, because currently it's misleading.
Please check the new version of the plugin. is_player_connected() is now synchronous and you can call it directly without waiting to get the response in the callback. Please take attention that it has a different name -> isSignedIn() .
Check if signed in: var is_signed_in: bool = play_games_services.isSignedIn()
It is not clear what is the role of the function is_player_connected(), I assumed it is used to check if the player is already connected or not but It always returns a null.
There must be a way to check if the sign-in to Google Play Games Services was successful and if the player is connected, I tried the _on_player_is_already_connected but it is never called.
The text was updated successfully, but these errors were encountered: