Hello all,
I have run into an issue, I have a waypoint script Im using and I need to have the variables within the code and not applied through the Unity GUI.
Currently: var waypoint : Transform;
I need to get these into an Array (I think), looking around there seem to be so many options and ways to go about this I am not really sure what do do…
So I think I need something like:
private var waypoint = new ArrayList(4);
function Awake(){
waypoint[0] = transform;
}
waypoint.Add.GameObject("wp1");
waypoint.Add.GameObject("wp2");
waypoint.Add.GameObject("wp3");
waypoint.Add.GameObject("wp4");
I know I’m screwing this up… But like I said I’m just lost on what the right method is for doing something like this. Anyone able to help me out on this?
Thanks in advance!