public CardEffect_GetCard(string _trigger, string _card_willGet, CardPile.PileType _pile) { trigger = _trigger; name = "获卡"; functionTarget = FunctionTarget.self; effectType = EffectType.afterCombat; card_willGet = _card_willGet; pile = _pile; priority = 6; }
// 卡牌相关 public void AddNewCardTo(CardPile.PileType _type, Card _card) { switch (_type) { case CardPile.PileType.deck: deckPile.AddCard(_card); break; case CardPile.PileType.focus: focusPile.AddCard(_card); break; case CardPile.PileType.hand: handPile.AddCard(_card); UIManager.instance.UpdateHandUI(handPile.cards_list); break; case CardPile.PileType.discard: discardPile.AddCard(_card); break; default: break; } }