I am making a 2D RTS, and am trying to get a multiplayer version working. I've run into some problems with the order that scripts are getting executed. For the host everything runs fine, but when a new client connects, I get a lot of bugs. What's happening is that the objects that I've spawned already are getting loaded into the new client's scene before things they depend on, like the map itself. When I was writing the code, I was thinking that there's no way that something user-created could get get loaded before the map, because the map gets loaded right when game starts, but the order in which UNET loads spawned items seems to be weird like that.
Is there anything I can do to change this, or do I just need to rewrite things so that the loading of spawned items doesn't require the map to be loaded?