我像这样结束回合,但我想暂停搜索玩家,我遇到的问题是 turnTimeout 仅适用于活跃玩家,但不适用于状态“匹配”。有没有其他方法可以在给定时间后停止配对?请帮帮我。谢谢
currentMatch.endTurn(withNextParticipants: [nextParticipant],
turnTimeout: 15.0, match: data!) { (error) in
if ((error) != nil) {
print("Error Oops, there was a problem. Try that
again.",error!)
}
}
statusLabel.text = "Game has ended"
}