Пример #1
0
        private IEnumerator InitialDeal()
        {
            yield return(new WaitForSeconds(1));

            int n = 2;

            while (n > 0)
            {
                deck.Deal(player);
                yield return(new WaitForSeconds(1));

                deck.Deal(house);
                yield return(new WaitForSeconds(1));

                n--;
            }

            gameButtons[0].gameObject.SetActive(true);
            gameButtons[1].gameObject.SetActive(true);
            playerTxt.gameObject.SetActive(true);
            houseTxt.gameObject.SetActive(true);

            currentPhase = playerPhase;
        }