|
@ -20,6 +20,7 @@ namespace Multiplayer |
|
|
private void RegisterHandlers() |
|
|
private void RegisterHandlers() |
|
|
{ |
|
|
{ |
|
|
ServerManager.Server.RegisterHandler(PlayerMsgID.Position, RecievePosition); |
|
|
ServerManager.Server.RegisterHandler(PlayerMsgID.Position, RecievePosition); |
|
|
|
|
|
ServerManager.Server.RegisterHandler(PlayerMsgID.QueryPosition, QueryPosition); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void RecievePosition(NetworkMessage msg) |
|
|
private void RecievePosition(NetworkMessage msg) |
|
|