Esempio n. 1
0
    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;
    }
Esempio n. 2
0
 public AvailableSpendViewModel(CardCost availableSpend)
 {
     Money        = availableSpend.Money;
     Potions      = availableSpend.Potions;
     DisplayValue = availableSpend.ToString();
 }
Esempio n. 3
0
 public AvailableSpendViewModel(CardCost availableSpend)
 {
     Money = availableSpend.Money;
     Potions = availableSpend.Potions;
     DisplayValue = availableSpend.ToString();
 }