void CheckIfOccupied(DropSlot slot) { if (slot.transform.childCount > 0) { slot.ResetCardOccupier().ResetCardPosition(); } slot.SetOccupied(gameObject); transform.SetParent(slot.transform); }
public void OnMouseDown() { if (canClick) { // flip card over transform.SetParent(target); enemySlot.SetOccupied(gameObject); translating = true; // slide it into place EnemyDeck.instance.currentHand.Remove(gameObject); } }