//Deals the player another card. //Checks if the player busted when they were given the new card. //Checks if the player hits 21 or 5 cards and ends their turn if so. public IEnumerator Hit() { yield return(StartCoroutine(DealCardToPlayer())); if ((player.GetHandSize() == 5 && !options.GetFiveCardCharlieToggleDisabled()) || player.GetHandValue() == 21) { if (player.GetHandValue() > 21 && !player.CheckAces()) { StartCoroutine(React(blackjackUIScript.Result.PlayerBust)); } else { StartCoroutine(Stand()); } } else if (player.GetHandValue() > 21) { if (player.CheckAces()) { UI.SetHitAndStand(true); anim.CrossFade("godBossDeckIdleAnimation"); } else { StartCoroutine(React(blackjackUIScript.Result.PlayerBust)); } } else { UI.SetHitAndStand(true); anim.CrossFade("godBossDeckIdleAnimation"); } }