private void Awake()
 {
     _car             = FindObjectOfType <Car>();
     _enemyCarSpawner = FindObjectOfType <EnemyCarSpawner>();
     _roadSpawner     = FindObjectOfType <RoadSpawner>();
     _sideTileSpawner = FindObjectOfType <SideTileSpawner>();
 }
Exemplo n.º 2
0
 private void Awake()
 {
     car_spawn = FindObjectOfType <EnemyCarSpawner>();
 }