public void ShowWaitingRoomUI() { var roomStatus = GetRoomStatus(); if (roomStatus != RoomStatus.Connecting && roomStatus != RoomStatus.AutoMatching && roomStatus != RoomStatus.Inviting) { return; } AndroidHelperFragment.ShowWaitingRoomUI(mRoom, mMinPlayersToStart, (response, room) => { if (response == AndroidHelperFragment.WaitingRoomUIStatus.Valid) { mRoom = room; if (GetRoomStatus() == RoomStatus.Active) { mListener.OnRoomConnected(true); } } else if (response == AndroidHelperFragment.WaitingRoomUIStatus.LeftRoom) { LeaveRoom(); } else { mListener.OnRoomSetupProgress(GetPercentComplete()); } }); }
public void onRoomCreated(/* @OnRoomCreatedStatusCodes */ int statusCode, /* @Nullable Room */ AndroidJavaObject room) { if (room == null) { mListener.OnRoomConnected(false); return; } mParent.mRoom = room; mListener.OnRoomSetupProgress(mParent.GetPercentComplete()); }