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()); }
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()); }