Example #1
0
    private void OnMouseEnter()
    {
        if (cardStateReference != CardState.AICard)
        {
            if (userCardHand != null && userCardHand.GetHandMovement() == false)
            {
                if (cardStateReference == CardState.CardInHand)
                {
                    SwitchColliders();
                    userCardHand.SetCardSelected(true);

                    if (this.transform.position == originalCardPos && userCardHand.GetCardHand().Count != 1)
                    {
                        this.transform.position += cardOverOffset;
                    }
                }
            }
        }
    }