Esempio n. 1
0
 public static void ReconnectWithGooglePlay(Action onSuccess = null, Action onFailure = null)
 {
     ReconnectingWithGooglePlay = true;
     DoAuthenticate(delegate
     {
         if (Social.localUser.authenticated)
         {
             PlayerPrefs.SetInt("explicitSignOut", 0);
             BackendManager.ConnectWithPlayGamesServices();
             if (onSuccess != null)
             {
                 onSuccess();
             }
         }
         else if (onFailure != null)
         {
             onFailure();
         }
     }, onFailure == null, silent: false);
 }