public void RemoveRoomStipulationCard(RoomStipulationCard removedCard) { removedCard.DeactivateCard(); foreach (VisualCardGraphic graphic in roomStipulationCardsGroup.GetComponentsInChildren<VisualCardGraphic>()) { if (graphic.assignedCard == removedCard) { GameObject.Destroy(graphic.gameObject); break; } } activeRoomCards.Remove(removedCard); }