|
|
@ -29,6 +29,8 @@ namespace Networking.Server { |
|
|
|
|
|
|
|
public void StartServer(int port) |
|
|
|
{ |
|
|
|
LoginHandler.ConnectedClients.Clear(); |
|
|
|
LoginHandler.DisconnectedClients.Clear(); |
|
|
|
Debug.Log("Starting Server on " + port); |
|
|
|
server = new NetworkServerSimple(); |
|
|
|
|
|
|
@ -43,10 +45,5 @@ namespace Networking.Server { |
|
|
|
if (server != null) |
|
|
|
server.Update(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |