void Start() { _spawnManager = GameObject.Find("SpawnManager").GetComponent <SpawnManager>(); _uiManager = GameObject.Find("UIManager").GetComponent <UIManager>(); if (_spawnManager == null) { Debug.LogError("Spawn manager is null!"); } transform.position = new Vector3(0, -2.7f, 0); if (_uiManager == null) { Debug.LogError("UI Manager is NULL"); } //_audioSource = GetComponent<AudioSource>(); if (_audioSource == null) { Debug.LogError("AudioSource for Player is NULL"); } _cameraShake = GameObject.Find("Main Camera").GetComponent <CameraShake>(); if (_cameraShake == null) { Debug.LogError("CameraShake is NULL"); } _currentBoostTime = _maxBoostTime; _boostFillBar.SetMaxFill(_maxBoostTime); _ammoFillBar.SetMaxFill(_ammoCount); _slowDownPowerUp = _slowDownPowerUpNormal; }