private void onDeath(){
  playSoundFromCategory(SoundLayer.FIGHTING_NOISE.groupName,"death");
}

private void onDeath ( ) { playSoundFromCategory ( SoundLayer . FIGHTING_NOISE . groupName , "death" ) ; }
called when the entity dies .
