private void Update() { score = hand.score; if (lastScore != score) { UpdateDisplay(); } lastScore = score; if (attackPhase) { if (!hand.isDrawing) { StartCoroutine(DrawCards(1)); hand.CalculateHandScore(); } if (score >= 50) { DetermineVictorByScore(); } } else if (GameManager.Instance.gameState == GameState.DealerCardReveal) { if (hand.bust) { DeclareLoss(); } if (!hand.holeCardRevealed) { hand.RevealHoleCard(); } else if (!hand.isDrawing && score <= 16) { StartCoroutine(DrawCards(1)); } else if (!hand.isDrawing && score > 16) { DetermineVictorByScore(); } hand.CalculateHandScore(); } }