Exemplo n.º 1
0
        public static GoogleSignIn GetInstance(GoogleSignInConfiguration Configuration)
        {
#if UNITY_ANDROID || UNITY_IOS
            if (theInstance == null || theConfiguration == null || theConfiguration != Configuration)
            {
                theConfiguration = Configuration;
                theInstance      = new GoogleSignIn(new GoogleSignInImpl(Configuration));
                return(theInstance);
            }
#endif
            return(null);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Signs out the User.
 /// </summary>
 /// <remarks>Future sign-in attempts will require the user to select the
 /// account to use when signing in.
 /// </remarks>
 public void SignOut()
 {
     theConfiguration = null;
     impl.SignOut();
 }