コード例 #1
0
        private void OnPerformPlayCard(object sender, object args)
        {
            var action = args as PlayCardAction;
            var card   = action.card;

            if (card.Type.Contains(CardType.Consumable))
            {
                var reaction = new BurnCardsAction(card);
                Container.AddReaction(reaction);
            }
        }
コード例 #2
0
ファイル: CurseCardSystem.cs プロジェクト: kolpet/Cardgame
        private void OnPerformPlayCard(object sender, object args)
        {
            var action = args as PlayCardAction;
            var card   = action.card as CurseCard;

            if (card == null)
            {
                return;
            }

            var reaction = new BurnCardsAction(card);

            Container.AddReaction(reaction);
        }