Пример #1
0
 public void SignInAnonymously()
 {
     if (_AGConnectAuth == null)
     {
         return;
     }
     _AGConnectAuth.SignInAnonymously()
     .AddOnSuccessListener((signInResult) =>
     {
         OnSignInSuccess?.Invoke(signInResult);
     })
     .AddOnFailureListener((error) =>
     {
         OnSignInFailed?.Invoke(error);
     });
 }
 public void SignInAnonymously()
 {
     if (_AGConnectAuth == null)
     {
         return;
     }
     _AGConnectAuth.SignInAnonymously()
     .AddOnSuccessListener((signInResult) =>
     {
         OnSignInSuccess?.Invoke(signInResult);
     })
     .AddOnFailureListener((error) =>
     {
         Debug.LogError("[HMSAuthServiceManager]: Sign in Anonymously failed. CauseMessage: " + error.WrappedCauseMessage + ", ExceptionMessage: " + error.WrappedExceptionMessage);
         OnSignInFailed?.Invoke(error);
     });
 }