// Destroy object using HealthScript private void DestroyByHealth(GameObject destroy) { if (destroy) { // Attempt to kill through the use of a HealthScript HealthScript health = destroy.GetComponent <HealthScript>(); if (health) { health.DamageMobHullDirectly(health.GetCurrHP() + 1); } // Fall back to network destruction else { DestroyByNetwork(destroy); } } }