public void CancelMatchmaking()
    {
        leaveBtn.SetActive(false);
        var request = new CancelMatchmakingTicketRequest
        {
            TicketId  = ticketId,
            QueueName = PlayfabUtils.MATCHMAKING_NAME
        };

        PlayFabMultiplayerAPI.CancelMatchmakingTicket(request, OnTicketCancelled, OnError);
    }
    public void LeaveQueue()
    {
        randomMatchMakingPanel.SetActive(false);
        mainPanel.SetActive(true);

        PlayFabMultiplayerAPI.CancelMatchmakingTicket(
            new CancelMatchmakingTicketRequest
        {
            QueueName = queueName,
            TicketId  = ticketId
        },
            OnTicketCanceled,
            OnMatchmakingError
            );
    }