Exemplo n.º 1
0
    public IEnumerator onMatchMakingButtonClick()
    {
        BlockInput();
        Debug.Log("Making/sending matchmaking request");

        string matchGroupNumber = "";

        yield return(GetMatchmakingGroupNumber(matchGroupNumber));

        MatchmakingRequest request = new MatchmakingRequest();

        request.SetMatchShortCode("DefaultMatch");
        request.SetSkill(0);
        request.SetMatchGroup(matchGroupNumber);
        // Store last request incase we get a throttled response
        lastMatchmakingRequest = request;

        request.Send(OnMatchmakingSuccess, OnMatchmakingError);
    }