예제 #1
0
        public virtual void OutCard(JlGameOutCardsArea outCardsArea, int cardVaule)
        {
            var cardItem = CardItemList[CardItemList.Count - 1];

            cardItem.Value = cardVaule;
            cardItem.transform.position = OutCardPos.position;
            outCardsArea.FromHandToOutArea(cardItem);

            CardItemList.Remove(cardItem);
            SetCardValue(null, CardItemList.Count);
        }
예제 #2
0
 public override void OutCard(JlGameOutCardsArea outCardsArea, int cardVaule)
 {
     for (int i = 0; i < CardItemList.Count; i++)
     {
         if (CardItemList[i].Value == cardVaule)
         {
             outCardsArea.FromHandToOutArea(CardItemList[i]);
             MyCardsValueList.Remove(cardVaule);
             CardItemList.Remove(CardItemList[i]);
             CardsArea.GetComponent <UIGrid>().repositionNow = true;
         }
     }
 }