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; }
public void Set(CardInstance v) { value = v; }
public static void DropCard(Transform c, Transform p, CardInstance cardInst) { SetParentForCard(c, p); gameManager.currentPlayer.DropCard(cardInst); }