public void CreateUser(EmailUser emailUser) { if (_AGConnectAuth == null) { return; } _AGConnectAuth.CreateUser(emailUser) .AddOnSuccessListener(signInResult => { OnCreateUserSuccess?.Invoke(signInResult); }) .AddOnFailureListener(error => { OnCreateUserFailed?.Invoke(error); }); }
public void CreateUser(EmailUser emailUser) { if (_AGConnectAuth == null) { return; } _AGConnectAuth.CreateUser(emailUser) .AddOnSuccessListener(signInResult => { OnCreateUserSuccess?.Invoke(signInResult); }) .AddOnFailureListener(error => { Debug.LogError("[HMSAuthServiceManager]: Create User failed. CauseMessage: " + error.WrappedCauseMessage + ", ExceptionMessage: " + error.WrappedExceptionMessage); OnCreateUserFailed?.Invoke(error); }); }