Hola a todos, llevo ya bastante con un problema y la verdad que no se que más hacer, así que agradecería muchísimo cualquier ayuda. El problema es el siguiente, al utilizar los servicios de Google Play Service (el ultimo plugin v0.9.34) nunca me deja autenticar (no solo en el editor, en el dispositivo tampoco). Este es el código:
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UnityEngine.Advertisements;
using System.Collections;
using System.Collections.Generic;
using GooglePlayGames;
using UnityEngine.SocialPlatforms;
using GooglePlayGames.BasicApi;
using UnityEngine.Analytics;
public class Menu : MonoBehaviour {
public Text record;
//Para testear si se ha conseguido autenticar
public GameObject test;
/**
Indicador del jugador de que no ha iniciado sesión, y no podrá acceder al ranking ni a los logros.
*/
public GameObject signIn;
void Start()
{
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder ().Build ();
PlayGamesPlatform.InitializeInstance(config);
GooglePlayGames.PlayGamesPlatform.DebugLogEnabled = true;
GooglePlayGames.PlayGamesPlatform.Activate ();
Advertisement.Initialize ("CORRECT_NUMBER", true);
test.SetActive (false);
SignIn ();
if (PlayerPrefs.HasKey("record"))
{
record.text = "Record actual: " + PlayerPrefs.GetInt("record");
Analytics.CustomEvent ("Start Play", new Dictionary<string, object>{ { "Record", PlayerPrefs.GetInt("record")} });
} else {
record.text = "Consigue un record!!";
}
}
public void OnPlay()
{
ShowAd ();
SceneManager.LoadScene("Jugar");
Time.timeScale = ;
}
public void OnArchievements()
{
if (Social.Active.localUser.authenticated) {
Social.Active.ShowAchievementsUI ();
} else {