private void Awake() { carUIController = GameObject.FindGameObjectWithTag("CarUI").GetComponent <CarUIController>(); mainUIController = GameObject.FindGameObjectWithTag("MainUI").GetComponent <MainUIController>(); StopGameFirst(); }
private void Awake() { powerUpSpawnManager = GameObject.FindGameObjectWithTag("PowerUpSpawnManager").GetComponent <PowerUpSpawnManager>(); carUIController = GameObject.FindGameObjectWithTag("CarUI").GetComponent <CarUIController>(); spawnManager = GameObject.FindGameObjectWithTag("SpawnManagers").GetComponent <SpawnManager>(); }