jakevn / MassiveNet

Unity3d UDP networking library focused on high-CCU, multi-server architecture.
MIT License
112 stars 36 forks source link

Split client / server scenes #2

Open NVentimiglia opened 9 years ago

NVentimiglia commented 9 years ago

In the examples you have a split server / client scenes. Could you provide an example (or guidance) on creating a single scene that can act as server and client.

DragonMagicStudio commented 9 years ago

Just build it separately by making client scenes and server scenes. You build twice one server one client. The easiest way is to build one server scene and just add that to the top of the scenes list before build. Unity always start the 1st scene, for a client you can remove it. It will consume some more build for server as it still has the client scene in it but its the easiest way.