@Override public void update(float delta) { super.update(delta); if (hp < 1) { // hp<=0 setAlive(false); } }