Hello, Im trying to make an adroid game which si connected to GPG ofcourse.
I've done everything exactly the same way as the tutorial video shows(that one without audio :/) but I cannot get a Server Auth Code.
Look at my code and tell me what am I doing wrong please, Im hardly stucked here :/
my code:
void Start() { PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder() .AddOauthScope("profile") .RequestServerAuthCode(false) .Build(); PlayGamesPlatform.InitializeInstance(config); PlayGamesPlatform.DebugLogEnabled = true; PlayGamesPlatform.Activate(); Debug.Log("Server Connected"); } public void Login() { Debug.Log("Server log in"); Social.localUser.Authenticate((bool success) => { var serverAuthCode = PlayGamesPlatform.Instance.GetServerAuthCode(); Debug.Log("Server Auth Code: " + serverAuthCode); }); }