Array not working please help!

Hello guys
I am using Array, to contains my gameobjects, I only used var waypoints : Array(), but this is an array of objects, not of gameobjects, how can I do this?
I am using Android Platform!
Please help, thanks

Then you can also use .Net’s Builtin arrays. For Example GameObject[ ] temp= new GameObject[5];

By mentioning Array it’s clear that the OP is asking about Unityscript, so it makes more sense to use Unityscript syntax when answering. So it would be “var waypoints : GameObject[ ]”. You pretty much never want to use Array; always use built-in arrays if the array size is fixed, or generic List if the size should be dynamic.

–Eric

Thanks UnityCoder and Eric5h5, but the problem is that I need to take all gameobjects contained in the waypointContainer, I am using Andre Gotow Script, high li implemented by me, It was working perfeclty on Windows and Mac Standalone platform, but when I switched the platform to android, I had to fix 654 errors, and this is the last which I am getting.
This is all sources tried which didn’t worked:

What can I do?