Authenticate() public méthode

Authenticate the local user with the Google Play Games service.
public Authenticate ( string>.Action callback ) : void
callback string>.Action /// The callback to call when authentication finishes. It will be called /// with true if authentication was successful, false /// otherwise. ///
Résultat void
Exemple #1
0
 /// <summary>
 /// Authenticates the local user. Equivalent to calling
 /// <see cref="PlayGamesPlatform.Authenticate" />.
 /// </summary>
 public void Authenticate(Action <bool> callback)
 {
     mPlatform.Authenticate(callback);
 }
Exemple #2
0
        /// <summary>
        /// Authenticates the local user. Equivalent to calling
        /// <see cref="PlayGamesPlatform.Authenticate" />.
        /// </summary>
        public void Authenticate(Action <bool, string> callback)
        {
            Action <bool> c = (bool a) => callback(a, "");

            mPlatform.Authenticate(c);
        }