问题
When the other player makes a turn, I am successfully receiving an "onTurnBasedMatchReceived()" update, but in the match details there is sometimes only my own participantId. Without knowing the other player's ParticipantId, I cannot do a takeTurn and pass the ID to the other player. Why do I sometimes not get the other player's ID and sometimes I do?
回答1:
If you've auto-matched with a random opponent and not taken the first turn yet, then you will only get one Participant Id. Just pass in null
to takeTurn()
for the pendingParticipantId field.
来源:https://stackoverflow.com/questions/21767373/only-one-participant-id-in-onturnbasedmatchreceived