I'm using:
var target : Transform;
so how do I create an array so I can have more than one GameObject as the target?
I'm using:
var target : Transform;
so how do I create an array so I can have more than one GameObject as the target?
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*/