Implement emotions
This commit is contained in:
parent
08c395cf51
commit
11df4f1164
25 changed files with 369 additions and 40 deletions
|
|
@ -14,7 +14,11 @@ public class CardUI : MonoBehaviour
|
|||
public void Init(BaseCard card) {
|
||||
this.nameText.text = card.GetDisplayName();
|
||||
this.typeText.text = card.GetDisplayType();
|
||||
this.costText.text = "" + card.GetCost();
|
||||
if (card.Type != CardType.Emotion) {
|
||||
this.costText.text = "" + card.GetCost();
|
||||
} else {
|
||||
this.costText.text = "";
|
||||
}
|
||||
this.effectText.text = card.GetEffectText();
|
||||
Sprite sprite = Resources.Load<Sprite>(GetCardArtResourcePath(card));
|
||||
this.artImage.sprite = sprite;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue