Esempio n. 1
0
    /// <summary>
    /// 寻找手牌
    /// </summary>
    /// <returns></returns>
    public List <Card> FindSelectCard()
    {
        CardUI[] cardUIs = characterUI.CreatePoint.GetComponentsInChildren <CardUI>();
        tempUI   = new List <CardUI>();
        tempCard = new List <Card>();


        for (int i = 0; i < cardUIs.Length; i++)
        {
            if (cardUIs[i].IsSelectes)
            {
                tempUI.Add(cardUIs[i]);
                tempCard.Add(cardUIs[i].Card);
            }
        }

        Toos.Sort(tempCard, true);
        return(tempCard);
    }
Esempio n. 2
0
 /// <summary>
 /// 排序
 /// </summary>
 /// <param name="asc">升序asc 降序desc</param>
 public virtual void Sort(bool asc)
 {
     Toos.Sort(_cardList, asc);
     SortCardUI(_cardList);
 }