Data loading. From DB to Server.

Hi!
My idea is simple but I did not, I want to fill my scene game objects, and the data about the objects stored in the database.

At the moment, I get to connect to the server to get any client data. But data NPS server fails to receive.

As everything happens (I’m using the 'Net):

  1. I’m creating a server using NetworkManager: NetworkManager.singleton.StartServer ();
  2. I slung on the scene Online.
  3. Next, the ConstructWorld () method works in script Constructor.cs
    Which in turn causes StartCoroutine GetNPCDataFromDB and through the WWW form sends the server ID, and then have to get (but not received) data from the database.
  4. Subsequently, the data I want to use the data for NetworkServer.Spawn (newGo);

Did I do that? Is there another way to get data from the server database and use them on stage?

Maybe im in a wrong way?

Hmm, I don’t know about that one. I’ve never used NPS with multiplayer (or NPS at all for that matter). Perhaps someone here has more experience with that?

Sorry about NPS i mena Non player Characters NPC!

It is really hard to say what the problem could be. There are a lot of working parts and they all have to be done correctly in order for this to work. The best I can suggest is making sure the data is being synchronized across all game objects, either with SyncVars, RPCs, or custom messages. Hope that helps