Hi guys I was just makin a simple Login function with playfab and than i realized that the on error function in this code isnt working. Here is the Code
using System.Collections.Generic;
using UnityEngine;
using PlayFab;
using PlayFab.ClientModels;
using UnityEngine.UI;
public class Test : MonoBehaviour
{
[Header("UI")]
public Text messageText;
public InputField emailInput;
public InputField passwordInput;
public void RegisterButton()
{
var request = new RegisterPlayFabUserRequest
{
Email = emailInput.text,
Password = passwordInput.text,
RequireBothUsernameAndEmail = false
};
PlayFabClientAPI.RegisterPlayFabUser(request, OnRegisterSuccess, OnError);
}
public void LoginButton()
{
}
void OnRegisterSuccess(RegisterPlayFabUserResult result)
{
messageText.text = "Registered and logged in!";
}
public void ResetpasswortButton()
{
}
void OnPasswordReset(SendAccountRecoveryEmailResult result)
{
}
}
can some of you help me out? THANKS!!!