Jump to content
Unity Insider Forum

Unity Google Play Games stürzt ab


F1R3ON

Recommended Posts

Liebe Community,

vielleicht hat ja einer das Problem nicht oder kennt sich mit dem Problem aus.

Es geht um das Unity Google Play Games Plugin v0.9.50 (ich hasse es...) und Unity 2018.2

Wenn man ein Spiel mit Unity 2018.2 startet stürzt es ab.

Das ist mein Code:

using UnityEngine;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SocialPlatforms;

public class GPLService : MonoBehaviour
{
    void Start()
    {
        PlayGamesPlatform.Activate();
        SignIn();
    }

    public void SignIn()
    {
        PlayGamesPlatform.Instance.localUser.Authenticate((bool success) =>
        {
            if (success)
            {
                Debug.Log("Signed In");
            }
            else
            {
                Debug.Log("Sign in failed");
            }
        }); 
    }

    public void ShowRanking()
	{
        Social.ShowLeaderboardUI();
    }

	public void ShowAchievements()
	{
        if(Social.localUser.authenticated)
        {
            Social.ShowAchievementsUI();
        }
    }
}

Es stürzt "erst" ab bei der verifizierung des Anmeldeprozesses... also bei

  PlayGamesPlatform.Instance.localUser.Authenticate((bool success) =>

Laut catlog ist das der einzige Fehler mit "W":

07-11 23:33:46.978: W/Unity(23136): !!! [Play Games Plugin DLL] 07/11/18 23:33:46 +02:00 WARNING: Creating new PlayGamesPlatform
07-11 23:33:46.978: W/Unity(23136):  
07-11 23:33:46.978: W/Unity(23136): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)

Ich bekomm die Krise mit dem "kack" Plugin von Google... und es gibt keine alternativen -.-

Vllt. weiß hier einer einen Rat oder es kann an der AndroidManifest.xml liegen???

Link zu diesem Kommentar
Auf anderen Seiten teilen

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Lädt...
×
×
  • Neu erstellen...