public List <UnitData> GetRandomCards(int num, bool repeat = false) { return(RandomPickFromList.RandomSelect <UnitData>(m_CardList, num, repeat)); }
public List <UnitData> GetRandomCardsWithCondition(SingleUnitCondition condition, int num, bool repeat = false) { List <UnitData> list = GetAllCardsWithCondition(condition); return(RandomPickFromList.RandomSelect <UnitData>(list, num, repeat)); }