Last active
May 11, 2023 10:06
-
-
Save VulBusters/f54a7372bc79befc0aed8b4f1cf4e6d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LoginWithEmailNormal | |
{ | |
public void LoginWithEmail() | |
{ | |
var loginReq = new LoginWithEmailAddressRequest | |
{ | |
Email = EmailField.text, | |
Password = PasswordField.text | |
}; | |
PlayFabClientAPI.LoginWithEmailAddress(loginReq, OnSuccess, OnError); | |
} | |
void OnSuccess(LoginResult result) | |
{ | |
String s = String.Format("Entity token: {0}", result.EntityToken.EntityToken); | |
Debug.Log(s); | |
} | |
void OnError(PlayFabError error) | |
{ | |
String s = String.Format("Error message: {0}", error.ErrorMessage); | |
Debug.Log(s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment