April 2021
Beginner to intermediate
506 pages
11h 57m
English
The GKTurnBasedEventListener protocol takes care of exchanges and match-related events for turn-based games; however, you don’t implement this protocol directly. Instead, you implement the GKLocalPlayerListener protocol, which inherits methods from the GKTurnBasedEventListener protocol. One of those methods is player(_:receivedTurnEventFor:didBecomeActive:).
The player(_:receivedTurnEventFor:didBecomeActive:) method gets called when it’s the local player’s turn. This method also gets called when:
Read now
Unlock full access