private void OnClickPlayNow(GameObject go) { APILobby.QuickJoinLobby((status, message, data) => { int roomId = System.Convert.ToInt32(data); if (roomId == -1) { APILobby.CreateLobby(presenter.SelectedChannel.configuration.betting[0], 9, null); } else if (roomId == -2) { DialogService.Instance.ShowDialog(new DialogMessage("Message", message, null)); } }); }
void OnClickBtnCreateGame(GameObject go) { LoadingView.Instance.Show(); APILobby.CreateLobby(currentBetting, data.numberPlayer, OnCreateLobbyCallBack); }