Пример #1
0
    private IEnumerator ExecutePush()
    {
        IsGameOver = true;
        yield return(new WaitForSeconds(0.5f));

        OnPush();
        Money += betValue;
        ChipContainer.ReturnChips();
    }
Пример #2
0
    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();
    }