Convert To Using Array

I have the following code I have work for on light in my scene to rotate, but instead I want to make it so that you can use an array of lights and have them rotate.

Here is the code I have that works awesome but only for one light:

public Transform rotation;




transform.RotateAround (rotation.position, Vector3.forward, ((Time.deltaTime / CircleCycleLength) * 360.0f));

foreach (Light l in LightArray)
//Do transform on l

LightArray is just the name of the array holding your lights.

If you have multiple lights, attach the script to each one. Make sure to set rotation.position to the transform.position of the item you wish to circle about, assuming I read your intention correctly? Otherwise, set the transform.position to a global location.