- Home /
Question by
dudedude123 · Feb 24, 2015 at 08:35 AM ·
aitargeting
Targeting multiple tags
I'm making a gam with selectable characters
Is there any way that I can use this field
public Transform Target;
to target multiple gameobjects
Comment
Best Answer
Answer by Kiwasi · Feb 24, 2015 at 08:36 AM
You want an array. Try
public Transform target[];
There's an error: error CS0650: Syntax error, bad array declarator. To declare a managed array the rank specifier precedes the variable's identifier. To declare a fixed size buffer field, use the fixed keyword before the field type