protected virtual void PlaceCard(CardView card, int siblingIndex) { Zone prevZone = card.CurrentZone; if (siblingIndex == -1) { siblingIndex = cardsHolderTransform.childCount; } canTakeAwayCards = false; card.transform.SetParent(cardsHolderTransform); card.transform.SetSiblingIndex(siblingIndex); //card.lastPosition = Vector3.zero; card.SetLocallyFacingUp(false); UpdateCardsSortingOrder(); UpdateCardsExSiblingIndex(); if (!cardList.Contains(card)) { cardList.Add(card); card.currentZoneObject = gameObject; } card.DroppedOnZone(this); if (prevZone != null && prevZone != (Zone)this) { prevZone.OnCardRemoved(card); } UnityEngine.Debug.Log(gameObject.name); }