private IEnumerator ExecutePush() { IsGameOver = true; yield return(new WaitForSeconds(0.5f)); OnPush(); Money += betValue; ChipContainer.ReturnChips(); }
private IEnumerator ExecuteWon() { IsGameOver = true; yield return(new WaitForSeconds(0.5f)); OnWon(); if (playerCardStack.HasNaturalBlackJack) { Money += Mathf.RoundToInt(1.5f * betValue) + betValue; } else { Money += betValue * 2; } ChipContainer.ReturnChips(); }