Show which cards are disabled

This commit is contained in:
henriquenakashima 2020-09-24 23:29:30 -04:00
parent 45b91ed352
commit 73557e3bbe
4 changed files with 9 additions and 8 deletions

View file

@ -23,6 +23,7 @@ public class CardUI : MonoBehaviour
this.typeText.text = "????";
this.costText.text = "????";
this.effectText.text = "????";
this.GetComponent<Image>().color = Color.black;
}
// Start is called before the first frame update
@ -38,6 +39,8 @@ public class CardUI : MonoBehaviour
}
public bool Playable {
set {this.nameText.color = value ? Color.black : Color.red;}
set {
this.GetComponent<Image>().color = value ? Color.white : Color.grey;
}
}
}