예제 #1
0
    private void CreateCard()
    {
        if (selected == 1)
        {
            CardCost_Mana manaCost = CreateInstance <CardCost_Mana>();
            manaCost.values = manaValues;

            gO = CreateInstance <CardDataAggregate>();
            gO.Construct(cardName, cardImage, cardTypes, manaCost);

            AssetDatabase.CreateAsset(gO, "Assets/Cards/" + cardName + ".asset");
        }
        else
        {
            return;
        }
    }
예제 #2
0
    private void Start()
    {
        card = GetComponent <Card>().Data;

        DisplayData();
    }