In LibGDX's update method, is it possible to make an action happen only once when told to, without doing this? :
private boolean shouldBeFired = false;
@Override
public void update(float dt) {
if(shouldBeFired)
fire();
shouldBeFired = false;
}