gpt4 book ai didi

game-center - 基于轮次的参与者超时日期始终为空

转载 作者:行者123 更新时间:2023-12-04 15:59:48 25 4
gpt4 key购买 nike

一直致力于使用自定义 UI 进行比赛管理的两人回合制游戏。考虑将应用程序限制为 iOS 6+ 以使用播放器超时。我想向用户显示剩余的移动时间,但participant.timeoutDate 始终为空?根据 WWDC 2012 视频(即超时不适用于 nextParticipants 中的最后一个参与者),我在调用 endTurnWithNextParticipants:turnTimeout:matchData:completionHandler 时传递了一个包含两个条目(索引为 0 的对手和索引为 1 的本地玩家)的数组: 转。我已经尝试过 GKTurnTimeoutDefault 和各种整数文字......没有运气......似乎总是为空。玩家的最后回合日期正常。

关于玩家超时的问题......在我让他们工作后,这是如何交付的?我看到 GKTurnBasedMatchOutcomeTimeExpired ......这是回合事件吗?

最佳答案

来自 Apple 的开发者论坛

埃利安·吉多尼——

+1 The doc should be: timeoutDate The date and time when the participant’s turn timed out. (read-only)

关于game-center - 基于轮次的参与者超时日期始终为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13689397/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com