private void FlipCards() { foreach (GameObject card in cards) { CardDisplay cardDisplay = card.GetComponent <CardDisplay>(); cardDisplay.FlipCardAnimated(); } }