Пример #1
0
 void Start()
 {
     trafficLight = GameObject.Find("ControlLights").GetComponent <Basic_Steps>();
     colCheck     = false;
 }
Пример #2
0
 // 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();
 }