Implement emotions

This commit is contained in:
henriquenakashima 2020-09-26 18:24:46 -04:00
parent 08c395cf51
commit 11df4f1164
25 changed files with 369 additions and 40 deletions

View file

@ -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;