Combu
3.2.2
Unity API Documentation
|
In this section you will learn how to retrieve the matches list of the local user and how to add/remove matches.
To retrieve the list of matches of the local user you need to call Match.Load:
You can also load a single Matches by its ID:
Once that the Match has been loaded, the property rounds gives you access to its rounds and scores: the collection users contains the MatchAccount objects (relationship between Match and Account), the collection scores contains the MatchRound objects (relationship between the Match-Account association and a round).
To create a quick match with another user you need to call Match.QuickMatch:
You can take a look at the code in Match.QuickMatch to see how to create a Match and use the code as base to create your own matches.
To send a score for the next round you need to call the method Score on a Match instance:
To delete a match you need to call Match.Delete, or call the method Delete on a Match instance: