The update order between the factory and the objects it generates

I have a factory that generates a bunch of enemies. The update method of each enemy needs to perform some calculations that depend on a global value. How can I update this global value to ensure it is up-to-date during the update calculations of all enemies? Currently, I am testing it, and the update process in the factory script runs before the update method of each enemy is executed.Is this reliable? I know that in Defold, the update order of game objects is unpredictable.

or how can I ensure that the update is executed before the update method of these enemy objects?