예제 #1
0
    public void UseCard(BasicCardData usedCard)
    {
        List <BasicCardData> playerHands = GameManager.Instance.currentTurn == TeamColor.White ?
                                           whiteHands : blackHands;

        playerHands.Remove(usedCard);
        ShowPlayerHands();
    }
예제 #2
0
    public override void OnInspectorGUI()
    {
        BasicCardData cardData = (BasicCardData)target;

        EditorGUILayout.TextField("Layout number", cardData.cardName);

        if (GUI.changed)
        {
            EditorUtility.SetDirty(target);
        }
    }