示例#1
0
    public void SetByCard(Card card)
    {
        Hero.SetByCard(card);
        CardNameText.text = card.name;
        string costText = card.cost >= 0 ? card.cost + "费" : "被动";

        costText = "(" + costText + ")";
        if (isLock)
        {
            SkillNameText.text        = "英雄技能" + costText;
            SkillDescriptionText.text = "锁定中";
            CardDescriptionText.text  = card.unlockDescription;
        }
        else
        {
            SkillNameText.text        = "英雄技能" + costText;
            SkillDescriptionText.text = CardBuilder.GetCardDescription(card);
            CardDescriptionText.text  = card.description;
        }
    }