Setting Up An Array Or List In Code

I currently have an array, which I need to fill out on each enemy. That’s a lot of work. Each of this array is the identical in members size and value, including order. This array is of float type.

What I am wondering, is, how, perhaps with lists, but I am uncertain, can I say something like this…

///this one shared script across all enemies.
thisArrayOrList.Length = 32;
thisArrayOrList[0] = 10;
thisArrayOrList[1] = 32;
....and so on.

:?

Not exactly sure what you’re asking… but an array will have the least amount of overhead, at least in C#. Not sure if you’re using C# or JavaScript, but if C#, you could put this in your script:

var thisArrayOrList = new float[] { 10, 32, 7.4f };

That works perfectly.
Thanks Dustin!