private void onDamage(float damageValue) { if (!actionApplied && (killable.getHealth().IsPreciselySmallerOrEqualTo(maxHealth))) { actionApplied = true; applyActionOnObjects(actionWhenValueReached); } }
private void onDamage(float damageValue) { if (!actionApplied && (killable.getHealth().IsPreciselySmallerOrEqualTo(maxHealth))) { actionApplied = true; applyActionOnObjects(actionWhenValueReached); } }