Accessing /Assigning array of Prefabs/Objects

#using Javascript;

To load a map, I’m reading in numeric data from a text file into a 2d array, and then cycling back through it and placing the prefabs based on the value of the map array. There is a total of 100 combinations here, being two digit, and I don’t particularly want to set up so many variables at the top of the script and use select statements if i don’t have too, and can instead do something like Instinaite(prefabList[mapValue[y]], position, rotation); instead.

tl;dr is I want to replace something like :

var towerOne : GameObject;
var towerTwo : GameObject;
var towerThree : Gameobject;

With an array I can assign the objects to via the editor, and get the prefab references from the indexes of said array. What’s the syntax for this?

var towers : GameObject;