void OnEnable() { _audioSource = GetComponent <AudioSource>(); _healthHandler = GetComponent <HealthHandler>(); _healthHandler.TriggerZeroHealthEvent += HandleBlowUp; }
void Start() { _playerHealth = FindObjectOfType <PlayerHandler>().gameObject.GetComponent <HealthHandler>(); if (_playerHealth != null) { _maxHealth = _playerHealth.HealthPoints; } }