multiple classes?

Hi all!
Ok, so I have this trading station that I want to have multiple wares. However, I want to be able to change the amount of wares from the inspector. Normally to start an array, i would do this:

var wares : Transform[];

So, now since i want multiple prefs for the array, i write something like this:

class wares {
var testimage : Texture2D;
var object : Transform
var price = 250.0;
}
var wares = wares();

Alright, so this works fine and dandy, but now I want to make an Array of these classes (element 0, element 1 etc.) If someone could tell me how to turn classes into an array I would appreciate it greatly. Thanks in advance!

-Stopsecret design

You already know how to make an array of a certain class, Transform is a class. :wink:

var waresArray : wares[];
waresArray = new Wares[5];
waresArray[0].prices = 10.0;

See this for general info about arrays and collections.