void Start() { // Change card variable to physical copy here this.name = CardName + " Card"; transform.Find("CardName").GetComponent <Text>().text = CardName; transform.Find("CardDecription").GetComponent <Text>().text = CardDescription; transform.Find("CardCost").GetComponent <Text>().text = CardCost.ToString(); GetComponentInParent <Draggable>().cardType = CardTypes.Utility; }
public AvailableSpendViewModel(CardCost availableSpend) { Money = availableSpend.Money; Potions = availableSpend.Potions; DisplayValue = availableSpend.ToString(); }