0
Game Center를 사용하여 게임을 숨기려고합니다. 나는 두 가지 역할을 설정했다 : hider와 seekker.GKMatch에서 플레이어 속성에 액세스
class Role
{
static let Seeker : UInt32 = 0xFFFF0000
static let Hider : UInt32 = 0xFFFF0000
}
내 GKMatchRequest의 playerAtrributes 필드를 설정합니다.
gkMatchRequest.playerAttributes = Role.Seeker | Role.Hider
다음 질문은 다음과 같습니다. 어떤 플레이어가 어떤 역할을 맡고 있는지 어떻게 알 수 있습니까?
감사합니다. – Moody3939