Пример #1
0
        public void StartServer()
        {
            if (isServer)
            {
                return;
            }

            isServer = true;
            serverObject.Start(serverPort, maxServerConnections, sessionName, connectionTimeout);

            networkOwnerId = ServerOwnerID;

            SpawnSceneObjects();

            OnStartServer();
        }
Пример #2
0
 public void StartLoginServer()
 {
     server.Start(LoginServerPort, maxClients, LoginSession, 5000);
     isRunning = true;
     OnLoginServerStarted();
 }