如何识别多人游戏是通过自动匹配还是邀请朋友发起的?
我在比赛开始时调用了这个方法:
- (void)matchmakerViewController:(GKMatchmakerViewController *)viewController didFindMatch:(GKMatch *)theMatch {
[presentingViewController dismissModalViewControllerAnimated:YES];
self.match = theMatch;
match.delegate = self;
if (!matchStarted && match.expectedPlayerCount == 0) {
NSLog(@"Ready to start match!");
[self lookupPlayers];
}
}
基本上我想要这个(请检查这个链接) -如何在多人游戏中同步数据(游戏中心 ios)