mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Update SpawnObject.md
This commit is contained in:
parent
901898e897
commit
7a9df5ea3d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user