Exemple #1
0
        public void PutCardToDiscardPile(CardInstance c)
        {
            discardPileCards.Add(c);
            c.transform.parent = discardPile.value;
            Vector3 p = Vector3.zero;

            p.x = discardPileCards.Count * 10;
            p.z = discardPileCards.Count * 10;
            c.transform.localPosition = p;
            c.transform.localRotation = Quaternion.identity;
            c.transform.localScale    = Vector3.one;
        }
Exemple #2
0
 public void Set(CardInstance v)
 {
     value = v;
 }
Exemple #3
0
 public static void DropCard(Transform c, Transform p, CardInstance cardInst)
 {
     SetParentForCard(c, p);
     gameManager.currentPlayer.DropCard(cardInst);
 }