Handle UiElements and libgdx particles between states.