- Home /
Question by
RpgMaster · Jun 24, 2016 at 05:02 AM ·
androidunity 5google play games
Google Play Services Authenticate
Hi,
I recently updated Unity to version 5.3.5, the android sdk and I'm using the GooglePlayGamesPlugin-0.9.34 and now my app doesn't work, it doesn't authenticate anymore. I didn't change the code, I just followed the instructions to upgrade the plugin.
Previously I was working with Unity 5.3.3 and GooglePlayGamesPlugin-0.9.32 and everything worked just fine. I don't know how to downgrade versions and I'm using a mac.
a simplified codecode for reference:
using UnityEngine;
using System.Collections;
using GooglePlayGames;
using UnityEngine.SocialPlatforms;
public class botones_script : MonoBehaviour {
public UnityEngine.UI.Text nombre;
public UnityEngine.UI.Text puntaje;
public UnityEngine.UI.Text agregado;
void Start () {
GooglePlayGames.PlayGamesPlatform.Activate();
nombre.text = "activo";
}
public void mostrar(){
if (!Social.localUser.authenticated) {
nombre.text = "Primer intento";
Debug.Log ("Primer intento");
Social.localUser.Authenticate((bool success) => {
if(success){
nombre.text ="entra a googleplay ";
}else{
nombre.text ="no entra a googleplay ";
}
});
} else {
agregado.text = "ya entro en algun momento";
}
}
}
Thank you.
Comment