Good day everyone,
I need some help with the Game Center in iOS.
Ok, the singleton is present (i can check it), but after that everything i do on the return value got to "null" anybody had experienced such thing? I'll post some code:
func init() -> bool:
# Check if plugin was added to the project
if Engine.hassingleton("GameCenter"):
GCenter = Engine.getsingleton("GameCenter")
print("Game Center Singleton Present ", GCenter) # HERE I CAN CHECK AND OK
from here any var returns "null"
var GCAUTH=GCenter.isauthenticated()
if GCAUTH :
print("Game Center Authenticated!")
GCAutenthicated=true
var GCAuthresult = GCenter.authenticate()
print("Authenticate ",GCAuthresult)
if GCAuthresult["type"]=="authentication" :
if GCAuthresult["result"]=="ok":
print("Game Center Authenticated!")
GCAutenthicated=true
if GCAuthresult["result"]=="error":
var error=GCAuthresult["errorcode"]
print("Game Center NOT Authenticated!, Error Code : ",error)
GCAutenthicated=false
return GCAutenthicated
PLEASE HELP!!