Esempio n. 1
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;
         }
     }
 }
Esempio n. 2
0
        public void FoldCard(int card)
        {
            for (int i = 0; i < CardItemList.Count; i++)
            {
                if (CardItemList[i].Value == card)
                {
                    CardItemList[i].SetCardDeath();
//                    CardItemList[i].IsFoldCard = false;
                    FromHandToFoldArea(CardItemList[i]);
                    MyCardsValueList.Remove(card);
                    CardItemList.Remove(CardItemList[i]);
                }
            }
            CardsArea.GetComponent <UIGrid>().repositionNow = true;
        }