void PlayGamesSignIn(Action <bool> callback)
    {
//		gav4.LogEvent (CATEGORY, "PlayGamesSignIn", null, 0);
        Debug.Log("***PlayGamesSignIn() …");
        Assert.AreEqual(GameState.SELECTING_GAME_TYPE, gameState);
        Game.instance.SetGameState(GameState.AUTHENTICATING);
//		// check if already signed in
//		if (gamesPlatform.IsAuthenticated ()) {
//			callback (true);
//		} else {
        gamesPlatform.Authenticate(callback, false);
//		}
    }
Beispiel #2
0
 /// <summary>
 /// Authenticates the local user. Equivalent to calling
 /// <see cref="PlayGamesPlatform.Authenticate" />.
 /// </summary>
 public void Authenticate(Action <bool> callback)
 {
     mPlatform.Authenticate(callback);
 }