void Update() { if (currentHealth <= 0) { GetComponent <OnDeath>().Execute(); Instantiate(ExplosionPrefab, transform.position, Quaternion.identity); Destroy(gameObject); } if (announceHealth) { healthEvent.announceHealth(currentHealth); } }