Match and Tournamen...
 
Notifications
Clear all

Match and Tournament

2 Posts
2 Users
0 Reactions
846 Views
(@roman-zhu)
Posts: 10
Active Member
Topic starter
 

Hi again.
Can you describe how to use Match and Tournament more accessibly, than a raw API reference, please?

btw, i've published a game since my last post on this forum. everything went without any problems on the part of the combu.happy it was slightly modified to handle payments.

 
Posted : 16/07/2015 9:55 pm
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

CombuDemoMatch scene contains all the examples, you can use Match.QuickMatch (it's possible to filter by friends or customData keys/values) to create quickly a match 1v1 and Tournament.QuickTournament to create a tournament with the list of players you pass in.

To create your own match instead of Match.QuickMatch you can do:

Match match = new Match();
match.AddUser(CombuManager.localUser);
match.AddUser(otherUser);
match.Save((bool success, string error) => {
   Debug.Log("Match saved: " + success);
});

To send a score you need to call Score method on a Match object (you can only send a score for the local user of course).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 16/07/2015 10:17 pm
Share: