void Start() { roadGen = (RoadGenerator)GameObject.Find("Road").GetComponent <RoadGenerator>(); foreach (Transform t in transform) { roadGen.ReportVertex(t.position); } }