예제 #1
0
    IEnumerator ChooseHand()
    {
        scriptP1.InitiateChooseCards();
        print("choosing hand");
        float timer = 0;

        while (timer < 10)
        {
            if (player1.GetComponent <RayCast>().confirm == true)
            {
                timer = 11;
            }
            yield return(null);
        }

        scriptP1.CleanChosenCards();

        StartCoroutine(Turn());
    }
예제 #2
0
    IEnumerator ChooseHand()
    {
        scriptP1.InitiateChooseCards();
        print("choosing hand");
        float timer = 0;

        while (timer < 10)
        {
            if (GameObject.Find("endTurn").GetComponent <endTurn>().turnover == true)
            {
                timer = 11;
            }
            yield return(null);
        }

        scriptP1.CleanChosenCards();

        StartCoroutine(Turn());
    }