private void sendPlayerActionToServer(int betAmount, int action) { iTween.Stab(gameObject, iTween.Hash("audioclip", buttonAudio, "pitch", 1)); raiseValue = 0; lastPlayerBetAmt = 0; SliderChips.value = 0f; SliderChips.enabled = false; gameObjectManager.getBetAmountText().text = GameConstant.CURRENCY + raiseValue; JSON_Object requestJson = new JSON_Object(); try { requestJson.put(GameConstant.TAG_PLAYER_NAME, appwarp.username); requestJson.put(GameConstant.TAG_BET_AMOUNT, betAmount); requestJson.putOpt(GameConstant.TAG_ACTION, action); //setPlayerBetAmount(appwarp.username,betAmount); WarpClient.GetInstance().sendMove(GameConstant.REQUEST_FOR_ACTION + requestJson.ToString()); } catch (Exception e) { Debug.Log("GameManager : " + e.ToString()); } }