void Start() { trafficLight = GameObject.Find("ControlLights").GetComponent <Basic_Steps>(); colCheck = false; }
// Start is called before the first frame update void Start() { InvokeRepeating("SpawnCars", SPAWN_CAR_DELAY, SPAWN_CAR_DELAY); trafficLight = GameObject.Find("ControlLights").GetComponent <Basic_Steps>(); random = new System.Random(); }