带有playerGroup的iPhone GameCenter邀请
我开发了一款使用GameCenter的iPhone应用程序。为了支持我的游戏的不同级别,我将playerGroup设置在
GKMatchRequest
类中。如果通过自动匹配制作过程开始匹配,则两个用户都知道playerGroup,但是如果使用了邀请过程,则被邀请者不知道playerGroup。
我试图在方法中读取playerGroup
- (void)matchmakerViewController:(GKMatchmakerViewController *)viewController didFindMatch:(GKMatch *)match
通过使用
[viewController matchRequest].playerGroup
,但属性playerGroup总是返回0,而不是右边的玩家组。
有谁知道如何解决这个问题。我需要知道playerGroup加载正确的级别。
非常感谢您的帮助
没有找到相关结果
已邀请:
3 个回复
徐百晴墓斜
孝铜差
迪擅哨乘傅