예제 #1
0
 private void DiscardCards()
 {
     foreach (var card in _discardingCards)
     {
         card.HideHighlight();
         EventMoveDeckCard.MoveCardToShareDeck(card.Entity);
     }
 }
예제 #2
0
    public void DiscardCard(CardObject card)
    {
        if (!CanUseCard())
        {
            return;
        }

        EventMoveDeckCard.MoveCardToShareDeck(card.Entity);
        CloseAction();
    }
예제 #3
0
        public void MoveToShareDeck()
        {
            var system = new EventMoveCardSystem(_contexts);

            var p1   = CreatePlayerEntity(1);
            var card = _contexts.card.CreateEntity();

            card.AddDeckCard(DeckCard.Move);
            card.AddOwner(p1);

            EventMoveDeckCard.MoveCardToShareDeck(card);

            system.Execute();

            Assert.IsFalse(card.hasOwner);
        }