public void Damage() { if (_isShieldActive == true) { _isShieldActive = false; _shieldVisualiser.SetActive(false); return; } _lives = _lives - 1; _uiManager.UpdateLives(_lives); if (_lives < 1) { _spawnManager.PlayerDied(); Destroy(this.gameObject); } }