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

@ -303,11 +303,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7b3535d42bc43e04ea1e8d2588ef0542, type: 3}
m_Name:
m_EditorClassIdentifier:
heroIds: 010000000000000002000000
monsterIds: 010000000000000000000000
cardIds: 00000000000000000000000001000000010000000100000004000000030000000300000007000000
mCardIds: 06000000060000000800000001000000010000000100000005000000050000000200000002000000
mCardOwnerIndexes: 00000000000000000000000001000000010000000200000000000000000000000100000002000000
heroUIPrefab: {fileID: 6641511084601005557, guid: ef1b469b45cedee418e4c4adf577cd00,
type: 3}
uiCanvas: {fileID: 35522588}

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

View file

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