/// <summary> /// Spawns the Traffic vehicle /// </summary> private void SpawnCar() { timer += Time.deltaTime; if (timer > spawnDelay && canSpawnTraffic()) { timer = 0; SetTrafficVehicle(trafficManager.SpawnTraffic()); } }