public void AuthenticateLoudlyProxied()
        {
            var mockClient = new LoginClient();
            var platform   = new PlayGamesPlatform(mockClient);

            platform.Authenticate(SentinelCallback, false);

            Assert.IsFalse(mockClient.AuthenticatedSilently.Value);
        }
Ejemplo n.º 2
0
        public void AuthenticateSilentlyProxied()
        {
            var mockClient = new LoginClient();
            var platform   = new PlayGamesPlatform(mockClient);

            platform.Authenticate(SentinelCallback, true);

            Assert.AreSame(SentinelCallback, mockClient.AuthenticationCallback);
            Assert.IsTrue(mockClient.AuthenticatedSilently.Value);
        }
Ejemplo n.º 3
0
    private void Awake()
    {
        GameManager.Get();
        NetworkManager.Get();

#if UNITY_ANDROID
        Log.Info("GPGS config");
        PlayGamesClientConfiguration config = new PlayGamesClientConfiguration
                                              .Builder()
                                              .EnableSavedGames()
                                              .Build();

        Log.Info("GPGS Init");
        PlayGamesPlatform.InitializeInstance(config);

        Log.Info("GPGS Activate");
        gpgs = PlayGamesPlatform.Activate();

        Log.Info("Auth Start");
        gpgs.Authenticate(suc => OnAuthenticate(suc));
#endif
        versionText.text = $"{Application.version}";
    }