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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.9150943, g: 0.9150943, b: 0.9150943, a: 1}
|
||||
m_Color: {r: 0.9137255, g: 0.9137255, b: 0.9137255, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
|
|
@ -219,6 +219,8 @@ MonoBehaviour:
|
|||
costText: {fileID: 6834692580065399204}
|
||||
artImage: {fileID: 8419538927331240723}
|
||||
effectText: {fileID: 2477879197027808366}
|
||||
normalMaterial: {fileID: 0}
|
||||
disabledMaterial: {fileID: 0}
|
||||
--- !u!1 &2477879197027808364
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue