void Start() { GameObjectActor[] actors = GetComponentsInChildren<GameObjectActor>(); foreach(GameObjectActor actor in actors) { flock.AddToFlock(actor); } }