Do you mean a second array that fills up with numbers as the loop progresses and then uses those numbers to name the variables? Like this
Code:
string[] arraynames = new string[2]; //hard coded length for now
for (int i = 0; i < 5; i++)
{
arraynames[0] = i.ToString();
string name = i.ToString();
Nmode = arraynames[0];
wallarray[i] = arraynames[0] = new Nmode(Content);
arraynames[0].Load();
}
that does sound like it would work better, but I'm unsure as to how I would use the contents of the second array to name the Nmodes.