public IEnumerator DrawCards(int numCards) { int drawnCards = 0; while (drawnCards < numCards) { hand.DrawCard(); yield return(new WaitUntil(() => !hand.isDrawing)); Debug.Log("incrementing drawn cards"); drawnCards++; } hand.CalculateHandScore(); }