Prasanna
Prasanna

Reputation: 536

Real Time Multiplayer Game

How to get current participant id in onRoomConnceted method? Previously I used myId = room.getParticipantId(getGamesClient().getCurrentPlayerId()); in new update it's not available and how to manage this if not available..?

Upvotes: 1

Views: 245

Answers (1)

Prasanna
Prasanna

Reputation: 536

I found the answer here it is

myId = room.getParticipantId(Games.Players.getCurrentPlayerId(getApiClient()));

Upvotes: 2

Related Questions