Trying to do a Card Game. I have a card wich has and Element class as a parameter…
Class Card {
public int atack;
public Element el;
}
Class Element{
public string name;
public int defense;
}
When i add the Card script to my prefab card I can edit my atack and can select my element… the problem is: when i try to add this element i have no elements… since its a class i created.
How can i instantiate this elements so i can use them?