标签: google-play-games
如何在onRoomConnceted方法中获取当前参与者ID?以前我用过 myId = room.getParticipantId(getGamesClient().getCurrentPlayerId());在新的更新中它不可用,如果不可用,如何管理它??
onRoomConnceted
myId = room.getParticipantId(getGamesClient().getCurrentPlayerId());
答案 0 :(得分:2)
我在这里找到了答案
myId = room.getParticipantId(Games.Players.getCurrentPlayerId(getApiClient()));