Hi, I’m trying to use Google Play Service in my Unity project.
And I used this code in my script.
void SignIn()
{
Social.localUser.Authenticate((bool success) =>
{
txt.text = “sign in”;
if (success)
{
txt.text = Social.localUser.authenticated.ToString();
}
else
{
txt.text = Social.localUser.authenticated.ToString();
}
});
}
The txt variable is just a Text object to see if the Authenticate method is called.
However, the Text object doesn’t change to ‘sign in’ which means the Authenticate method doesn’t called.
This is my first time using Google Play Service in Unity so I have no idea how to solve this problem.
Can anybody help?
My Unity version is 5.6.3p2 and I’m using GooglePlayGamesPlugin-0.9.42.
Thanks.
Same problem here. Is your problem solved yet?