// Use this for initialization void Start() { InvokeRepeating("SpawnTruck", 5f, 4f); CarEventManager.StartListening("ExitIntersection", HandleExitIntersection); }
// Use this for initialization void Start() { CarEventManager.StartListening("EnterIntersection", HandleEnterIntersection); CarEventManager.StartListening("ExitIntersection", HandleExitIntersection); }