Exemple #1
0
 public CardBlackjack moveToDiscard(CardBlackjack tCB)
 {
     tCB.state = CBlState.discard;
     discardPile.Add(tCB);
     tCB.setSortingLayerName(layout.discardPile.layerName);
     tCB.setSortOrder(discardPile.Count * 4);
     tCB.transform.localPosition = layout.discardPile.pos + Vector3.back / 2;
     return(tCB);
 }
Exemple #2
0
 public CardBlackjack addCard(CardBlackjack eCB)
 {
     if (hand == null)
     {
         hand = new List <CardBlackjack> ();
     }
     hand.Add(eCB);
     eCB.player = playerNum;
     eCB.setSortingLayerName("10");
     eCB.eventualSortLayer = handSlotDef.layerName;
     fanHand();
     return(eCB);
 }