I'm trying to make an rpg style game in the console with c#. I'm assigning an array in a constructor but its telling me that's its not assigned
class Warrior
{
public string[] attacks, weapons, items;
// Constructer
public Warrior()
{
attacks[0] = "Basic Slash";
weapons[0] = "Basic Sword";
items[0] = "Basic Health Potion";
}
}
ive tried messing around with the access modifiers but its still not working