Example #1
0
 void CheckIfOccupied(DropSlot slot)
 {
     if (slot.transform.childCount > 0)
     {
         slot.ResetCardOccupier().ResetCardPosition();
     }
     slot.SetOccupied(gameObject);
     transform.SetParent(slot.transform);
 }
Example #2
0
    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);
        }
    }