private void PlayFab_OnRedeemTicketSuccess(RedeemMatchmakerTicketResult result)
    {
        string ticket = ((RedeemMatchmakerTicketRequest)result.Request).Ticket;

        //Reply to client whether or not they are validated and considered 'joined'
        ServerNetworkManager.Instance.FinalizeJoinRequest(ticket, result.UserInfo, result.TicketIsValid);
    }
Пример #2
0
    private void OnAuthUserResponse(RedeemMatchmakerTicketResult response)
    {
        Logger.Dispatch(LoggerTypes.Info, string.Format("PlayFab Says AuthTicket isValid:{0}", response.TicketIsValid));
        var uconn = UnityNetworkingData.Connections.Find(c => c.PlayFabId == response.UserInfo.PlayFabId);

        if (uconn != null)
        {
            uconn.IsAuthenticated = response.TicketIsValid;
            uconn.Connection.Send(201, new StringMessage()
            {
                value = "Client Authenticated Successfully"
            });
        }
    }