コード例 #1
0
    IEnumerator DealerGet()
    {
        insurancePanel.gameObject.SetActive(false);

        dealer.OpenHole(delay: 0.4f);

        if (CanDealerProgress)
        {
            while (true)
            {
                yield return(new WaitForSeconds(1.8f));

                if (dealer.IsStopHitting)
                {
                    break;
                }

                GetDealerCard(false, true);
                dealer.DisplayStateUI(delay: 0.9f);
            }
        }

        if (dealer.Value == HAND_VALUE.BURST_DEALER)
        {
            yield return(new WaitForSeconds(SoundManager.Instance.D_Burst()));
        }

        NextTurn(PLAY_TURN.RESULT);
    }