Exemplo n.º 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());
    }
Exemplo n.º 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());
    }