コード例 #1
0
 public List <UnitData> GetRandomCards(int num, bool repeat = false)
 {
     return(RandomPickFromList.RandomSelect <UnitData>(m_CardList, num, repeat));
 }
コード例 #2
0
    public List <UnitData> GetRandomCardsWithCondition(SingleUnitCondition condition, int num, bool repeat = false)
    {
        List <UnitData> list = GetAllCardsWithCondition(condition);

        return(RandomPickFromList.RandomSelect <UnitData>(list, num, repeat));
    }