Show which cards are disabled
This commit is contained in:
parent
45b91ed352
commit
73557e3bbe
4 changed files with 9 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue