void Death() { Respawn respawnScript = GetComponent <Respawn>(); if (respawnScript != null) { health = startHealth; respawnScript.RespawnAfterDelay(); } else { Destroy(gameObject); } }