void ProcessNewCard(CardView view, int index, bool attach) { view.transform.SetParent(transform, !attach); view.transform.SetSiblingIndex(index); view.transform.localScale = Vector3.one; view.AddCallback(() => OnCardClick(index)); }