Пример #1
0
    void OnDrop()
    {
        CardSlot cardSlot = GetCollidedCardSlot();

        if (cardSlot != null && cardSlot.CanPlayCardHere(this))
        {
            // reveal this card to both players, then play it to the board
            gm.actionQueue.AddAction(new RevealCardAction(this.actorID, template.ID.GetID()));
            gm.actionQueue.AddAction(new PlayCardAction(this.actorID, cardSlot.actorID));
        }
        else
        {
            ReturnToMyHand();
        }

        MouseTargetable.SetActiveTargetingGroups(new List <TargetingGroup> {
            TargetingGroup.CardInMyHandPlayable,
            TargetingGroup.CardOnBoardChargeable
        });
    }