Ejemplo n.º 1
0
        // full server setup code, without spawning objects yet
        async Task SetupServer()
        {
            logger.Log("NetworkManager SetupServer");

            // start listening to network connections
            await server.ListenAsync();
        }
Ejemplo n.º 2
0
 void Start()
 {
     // headless mode? then start the server
     // can't do this in Awake because Awake is for initialization.
     // some transports might not be ready until Start.
     if (server && SystemInfo.graphicsDeviceType == GraphicsDeviceType.Null && startOnHeadless)
     {
         server.ListenAsync().Forget();
     }
 }
Ejemplo n.º 3
0
        // full server setup code, without spawning objects yet
        async Task SetupServer()
        {
            if (LogFilter.Debug)
            {
                Debug.Log("NetworkManager SetupServer");
            }

            ConfigureServerFrameRate();

            // start listening to network connections
            await server.ListenAsync();
        }