public IEnumerator drawCard() { Card card = drawPile.drawCard(); card.isVisible = true; card.GetComponent <Animator>().Play("draw"); card.setPosition(drawPile.transform.position); card.position = drawPile.transform.position; cardHand.addCard(card); yield return(null); }