For Loop

How would you guys cycle through every gameobject in the scene?

basically what I want to do it

for (every object; current gameobject = n; next object)
{

object running script moves toward n according to n.mass

}

Anyone have some good suggestions?

Bump

you could probably use findGameObjectsWithTag if they all have the same tag.
You can also parent them to an empty game object.

Perfect thanks ivkoni