public void managePlayerMoveAction(string name, int betamount, int totalTableAmount, int totalPlayerBalance, int action) { PlayerBean playerBean = playersManager.getPlayerFromName(name); RoundManager currentRoundManger = getCurrentRoundInfo(); if (currentRound == GameConstant.WA_ROUND_START && playerBean.isBigBlindPlayer()) { totalBBPlayersTurn++; } if (currentRoundManger.getRound() == GameConstant.WA_ROUND_WHOOPASS) { StartCoroutine(managePlayerWACardAction(action, playerBean)); } txtLog.text = txtLog.text.ToString() + "\n" + playerBean.getPlayerName() + " >> Action >> " + getActionName(action) + " >> " + betamount; Invoke("scrollDown", 1f); if (betamount > 0) { animationManager.MoveChipsObject(playerBean.getChipObject(), gameObjectManager.getTableChipSetObject()); // yield return new WaitForSeconds (GameConstant.ANIM_WAITING_TIME); playerBean.getChipObject().transform.position = playerBean.getChipPositionObject().transform.position; } TurnManager turnManager = new TurnManager(playerBean, action, betamount); currentRoundManger.addTurnRecord(turnManager); int totalBetAmtInRound = currentRoundManger.getTotalPlayerBetAmount(playerBean); playerBean.setBetAmount(betamount, totalBetAmtInRound); playersManager.setLastPlayerAction(name, action, betamount, totalBetAmtInRound, totalPlayerBalance); if (playerBean.getBalance() <= 0 && !playerBean.isAllInPlayer()) { playerBean.setPlayerBalance(0); // if player balance is not enough playerBean.setAllInStatus(true); } setTotalBetTableAmount(totalTableAmount); }