void Update() { HealthBehaviour health = gameObject.GetComponent(typeof(HealthBehaviour)) as HealthBehaviour; if (health != null) { if (health.IsDead()) { ProcessDeath(); } } }