async Task onTurnStart(Card thisCard, object[] args)
        {
            Debug.Log(thisCard + "延迟效果发动");
            Game   game   = args[0] as Game;
            Player player = thisCard.getProp <Player>("player");
            await player.DrawActionCard(game, 1);

            game.EventSystem.Remove(EventEnum.TurnStart, thisCard.getProp <CardCallback>("onTurnStart").call);
            game.DelayActionDeck.Remove(thisCard as ActionCard);
            await(thisCard as ActionCard).onEffected(game);
        }
Beispiel #2
0
        public void modifyIntPropTest()
        {
            Card card = new Card(0);

            _ = card.addBuff(null, new TestBuff());
            Assert.AreEqual(1, card.getProp <int>(null, "attack"));
        }