1
如何獲取onRoomConnceted
方法中的當前參與者ID?以前我在新的更新中使用了 myId = room.getParticipantId(getGamesClient().getCurrentPlayerId());
它不可用,以及如果不可用,如何管理它?實時多人遊戲
如何獲取onRoomConnceted
方法中的當前參與者ID?以前我在新的更新中使用了 myId = room.getParticipantId(getGamesClient().getCurrentPlayerId());
它不可用,以及如果不可用,如何管理它?實時多人遊戲
我找到了答案這裏是
myId = room.getParticipantId(Games.Players.getCurrentPlayerId(getApiClient()));