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):
- I’m creating a server using NetworkManager: NetworkManager.singleton.StartServer ();
- I slung on the scene Online.
- 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. - 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?