void ProcessCards() { if (heldCard.value == secondCard.value) { onMatch.Invoke(); heldCard.gameObject.SetActive(false); secondCard.gameObject.SetActive(false); } else { onMisMatch.Invoke(); heldCard.Flip(); secondCard.Flip(); } heldCard = null; secondCard = null; }