public void Damage() { if (_shieldIsActive == true) { _shieldStrength--; ShieldCheck(); return; } CameraControl cameraControl = Camera.main.GetComponent <CameraControl>(); if (cameraControl != null) { cameraControl.CamShake(); } _playerLives -= 1; EngineDamageCheck(_playerLives); _uiManager.UpdateLives(_playerLives); if (_playerLives < 1) { StartCoroutine(PlayerDead()); } }