diff --git a/Assets/GoogleSigninSDK/GoogleSignInManager.cs b/Assets/GoogleSigninSDK/GoogleSignInManager.cs index 5a2cb6dd..80cc3afc 100644 --- a/Assets/GoogleSigninSDK/GoogleSignInManager.cs +++ b/Assets/GoogleSigninSDK/GoogleSignInManager.cs @@ -141,26 +141,28 @@ public class GoogleSignInManager : MonoBehaviour { Debug.Log("Attempting Google Silent Sign-In..."); - GoogleSignIn.DefaultInstance.SignInSilently().ContinueWith(task => - { - if (task.IsFaulted || task.IsCanceled) - { - Debug.LogWarning("Silent Sign-In failed. Showing login buttons."); - googleSignInButton.gameObject.SetActive(true); - googleSignInButton.interactable = true; - - guestLoginButton.gameObject.SetActive(true); - guestLoginButton.interactable = true; - return; - } - - GoogleSignInUser user = task.Result; - string authCode = user.AuthCode; - SafePlayerPrefs.SetString("GoogleAuthCode", authCode); - PlayerPrefs.Save(); - - LoginToPlayFab(authCode); - }); + GoogleSignIn.DefaultInstance.SignIn().ContinueWith(OnGoogleSignIn); + + // GoogleSignIn.DefaultInstance.SignInSilently().ContinueWith(task => + // { + // if (task.IsFaulted || task.IsCanceled) + // { + // Debug.LogWarning("Silent Sign-In failed. Showing login buttons."); + // googleSignInButton.gameObject.SetActive(true); + // googleSignInButton.interactable = true; + // + // guestLoginButton.gameObject.SetActive(true); + // guestLoginButton.interactable = true; + // return; + // } + // + // GoogleSignInUser user = task.Result; + // string authCode = user.AuthCode; + // SafePlayerPrefs.SetString("GoogleAuthCode", authCode); + // PlayerPrefs.Save(); + // + // LoginToPlayFab(authCode); + // }); } private void LoginToPlayFab(string authCode)