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; } }
private void Start() { card = GetComponent <Card>().Data; DisplayData(); }