registration issue this is my code:
PlayFabLogin.cs
private string userEmail; private string userPassword; private string userName; public GameObject registrationpanel; public void Start() { if (string.IsNullOrEmpty(PlayFabSettings.TitleId)) { PlayFabSettings.TitleId = "00012"; //here my title id } var request = new LoginWithEmailAddressRequest { Email = userEmail, Password = userPassword}; PlayFabClientAPI.LoginWithEmailAddress(request, OnLoginSuccess, OnLoginFailure); } private void OnLoginSuccess(LoginResult result) { Debug.Log("Congratulations, you made your first successful API call!"); registrationpanel.SetActive(false); } private void OnRegisterSuccess(RegisterPlayFabUserResult result) { Debug.Log("Congratulations, you made your first successful API call!"); registrationpanel.SetActive(false); } private void OnLoginFailure(PlayFabError error) { Debug.LogWarning("Something went wrong with your first API call. :("); Debug.LogError("Here's some debug information:"); Debug.LogError(error.GenerateErrorReport()); var registerRequest = new RegisterPlayFabUserRequest { Email = userEmail, Password = userPassword, Username = userName }; PlayFabClientAPI.RegisterPlayFabUser(registerRequest, OnRegisterSuccess, onRegisterFailure); Debug.Log(error.GenerateErrorReport()); } private void onRegisterFailure(PlayFabError error) { Debug.LogError(error.GenerateErrorReport()); } public void GetUserEmail(string emailIn) //get the emailaddress { userEmail = emailIn; } public void GetUserPassword(string passwordIn) //get the password { userPassword = passwordIn; } public void GetUsername(string userNameIn) //get the username { userNameIn = userName; } public void OnClickRegistration() { var registerRequest = new RegisterPlayFabUserRequest { Email = userEmail, Password = userPassword, Username = userName }; PlayFabClientAPI.RegisterPlayFabUser(registerRequest, OnRegisterSuccess, onRegisterFailure); } on click call username -> PlayFabLogin->GetUsername email -> PlayFabLogin -> GetUserEmail password -> PlayFabLogin -> GetUserPassword registration -> PlayFabLogin -> OnClickRegistration
how to solve this issue
,