public void UseCard(BasicCardData usedCard) { List <BasicCardData> playerHands = GameManager.Instance.currentTurn == TeamColor.White ? whiteHands : blackHands; playerHands.Remove(usedCard); ShowPlayerHands(); }
public override void OnInspectorGUI() { BasicCardData cardData = (BasicCardData)target; EditorGUILayout.TextField("Layout number", cardData.cardName); if (GUI.changed) { EditorUtility.SetDirty(target); } }