public void AuthenticateLoudlyProxied() { var mockClient = new LoginClient(); var platform = new PlayGamesPlatform(mockClient); platform.Authenticate(SentinelCallback, false); Assert.IsFalse(mockClient.AuthenticatedSilently.Value); }
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); }
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}"; }