コード例 #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;
    }
コード例 #2
0
 public AvailableSpendViewModel(CardCost availableSpend)
 {
     Money        = availableSpend.Money;
     Potions      = availableSpend.Potions;
     DisplayValue = availableSpend.ToString();
 }
コード例 #3
0
 public AvailableSpendViewModel(CardCost availableSpend)
 {
     Money = availableSpend.Money;
     Potions = availableSpend.Potions;
     DisplayValue = availableSpend.ToString();
 }