- Home /
Question by
RSunity · Feb 06, 2011 at 04:45 PM ·
javascriptgameobjecttransformarrayvariable
How do I create an array for multiple targets?
I'm using:
var target : Transform;
so how do I create an array so I can have more than one GameObject as the target?
Comment
Best Answer
Answer by Uriel_96 · Feb 06, 2011 at 04:48 PM
first, the correct form to put that is:
var target : Transform;
then for create an array of does transform you need to put it like this:
var target : Transform[];
and then to use a specific target in your array size you do something like this:
target[2]/*blablabla*/
if this is answer really helps clic to the check mark to accept this answer