public void SignIn(AGConnectAuthCredential paramAGConnectAuthCredential) { if (_AGConnectAuth == null) { return; } _AGConnectAuth.SignIn(paramAGConnectAuthCredential) .AddOnSuccessListener((signInResult) => { OnSignInSuccess?.Invoke(signInResult); }) .AddOnFailureListener((error) => { OnSignInFailed?.Invoke(error); }); }
public void SignIn(AGConnectAuthCredential paramAGConnectAuthCredential) { if (_AGConnectAuth == null) { return; } _AGConnectAuth.SignIn(paramAGConnectAuthCredential) .AddOnSuccessListener((signInResult) => { OnSignInSuccess?.Invoke(signInResult); }) .AddOnFailureListener((error) => { Debug.LogError("[HMSAuthServiceManager]: Sign in failed. CauseMessage: " + error.WrappedCauseMessage + ", ExceptionMessage: " + error.WrappedExceptionMessage); OnSignInFailed?.Invoke(error); }); }