/// Requests a list of available teams from ChilliConnect using the QueryCollection /// method. /// public void FetchTeams() { var desc = new QueryCollectionRequestDesc(TEAMS_KEY); m_chilliConnect.CloudData.QueryCollection(desc, (request, response) => OnTeamsFetched(response), (request, error) => Debug.LogError(error.ErrorDescription)); }
public void StartMatchmaking() { UnityEngine.Debug.Log("Looking for new matches"); OnMatchMakingStarted(); QueryCollectionRequestDesc requestDesc = new QueryCollectionRequestDesc(MATCHES_COLLECTION); requestDesc.Query = string.Format(QUERY_FIND_MATCH, Match.MATCHSTATE_WAITING); m_chilliConnect.CloudData.QueryCollection(requestDesc, (request, response) => StartMatchmakingCallback(response), (request, error) => Debug.Log(error.ErrorDescription)); }