Update SpawnObject.md

This commit is contained in:
James Frowen 2020-08-17 12:56:02 +01:00 committed by GitHub
parent 901898e897
commit 7a9df5ea3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,8 +53,8 @@ public void ServerListen()
NetworkServer.RegisterHandler<ConnectMessage>(OnServerConnect);
NetworkServer.RegisterHandler<ReadyMessage>(OnClientReady);
if (NetworkServer.Listen(7777))
Debug.Log("Server started listening on port 7777");
// start listening, and allow up to 4 connections
NetworkServer.Listen(4);
}
// When client is ready spawn a few trees