public void cardClicked(CardBlackjack tCB) { if (CURRENT_PLAYER == null) { return; } if (CURRENT_PLAYER.type != PlayerType.human) { return; } if (phase == TurnPhase.waiting) { return; } switch (tCB.state) { case CBlState.drawpile: CardBlackjack cb = CURRENT_PLAYER.addCard(draw()); cb.callbackPlayer = CURRENT_PLAYER; Utils.tr(Utils.RoundToPlaces(Time.time), "Blackjack.cardClicked()", "Draw", cb.name); phase = TurnPhase.waiting; break; case CBlState.hand: if (CURRENT_PLAYER.type == PlayerType.human && tCB.player == 0) { print("Stay"); CURRENT_PLAYER.stay = true; passTurn(); } break; } }