Ejemplo n.º 1
0
    public static void TrySignIn(System.Action <bool> callback)
    {
        Debug.Log("Entering Login");
#if UNITY_ANDROID
        Debug.Log("Setting up PlayGamePlatform");
        PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
                                              .RequestServerAuthCode(false)
                                              .Build();
        Debug.Log("Config: " + config.ToString());
        PlayGamesPlatform.InitializeInstance(config);
        PlayGamesPlatform.DebugLogEnabled = true;
        PlayGamesPlatform.Activate();
        Debug.Log("PlayGamePlatform Activated");
#endif
        Social.localUser.Authenticate(callback);
        Debug.Log("Leaving Login");
    }