private void Awake() { objectsInHierarchy = transform.GetChild(0).transform; active = objectsInHierarchy.GetChild(0).transform; spawningPoints = GameObject.FindGameObjectWithTag("SpawnManagers").GetComponent <SpawningPoints>(); CreatePool(); }
private void Awake() { gameManager = GameObject.FindGameObjectWithTag("GameManager").GetComponent <GameManager>(); spawningPoints = GameObject.FindGameObjectWithTag("SpawnManagers").GetComponent <SpawningPoints>(); SpawnCars(); }