//=========================== card func ============================= //选中卡片 public bool SelectCard(CardItem card) { if (!IsInCardActiveState()) { return(false); } if (curMode == BattleOperationMode.Normal) { selectCard = card; selectCardType = card.CardExecuteType; SwitchOperationMode(BattleOperationMode.HoldCard); return(true); } return(false); }
public void InjectData(LuaTable cardVO) { cardUid = cardVO.Get <int>("uid"); cardId = cardVO.Get <int>("id"); cardExecuteType = (CardExcuteType)cardVO.Get <int>("cardExcuteType"); }