I want to declare a new instance of a class, but have the name created from concatenation.
eg.
for (int i = 0; i < 3; i++)
{
Class ('movement' + i) = new Class();
switch(i) {
case 0:
movement0.stuff();
break;
case 1:
movement1.stuff();
break;
case 2:
movement2.stuff();
break;
}
}
is this possible? I know this isn't the correct syntax, but it is me guessing