Exemplo n.º 1
0
    public void Login()
    {
        login_request          = new LoginWithPlayFabRequest();
        login_request.Username = username;
        login_request.Password = password;

        PlayFabClientAPI.LoginWithPlayFab(login_request,
                                          result =>
        {
            //If the account is found
            multiplayer_manager.ConnectToMaster();
            Debug.Log("You are now logged in!");
        }, error =>
        {
            // If the account is not found
            Debug.Log(error.ErrorMessage);
        }, null);
    }