I know this doesnt work but this is the only way i can explain it. How can i do something to this effect:
public Item myItem;
[System.Serializable]
public class Item
{
public string name;
if (name == "Weapon") // How Can I make it show variable damage if it is a weapon?
{
int damage = 10;
}
}
void Start ()
{
}
void Update ()
{
}
How can i use if statements to show variables in the inspector?