I am trying to make a c# script that uses an array. There should be an array that people tell how meany lights they want and drop them in as elements. I have this much done. My problem lies in making the code detect how many lights were put in. Then I want it to turn the first one off for a second then turn it back on and the next one off and repeat this patten over and over amonst all the lights in the array.
Here is my code so far
using UnityEngine;
using System.Collections;
public class LightControle : MonoBehaviour {
public GameObject[] Light1 = new GameObject[0];
}