mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
comments
This commit is contained in:
parent
02e8cde323
commit
9ac8997d6a
@ -37,6 +37,7 @@ void Handler(NetworkConnection conn, NetworkReader reader, int channelId)
|
||||
invoked = true;
|
||||
}
|
||||
|
||||
// set up handler on the server connection
|
||||
Dictionary<ushort, NetworkMessageDelegate> handlers = new Dictionary<ushort, NetworkMessageDelegate>();
|
||||
handlers.Add(MessagePacking.GetId<TestMessage>(), Handler);
|
||||
connectionToClient.SetHandlers(handlers);
|
||||
@ -58,6 +59,7 @@ void Handler(NetworkConnection conn, NetworkReader reader, int channelId)
|
||||
invoked = true;
|
||||
}
|
||||
|
||||
// set up handler on the client connection
|
||||
Dictionary<ushort, NetworkMessageDelegate> handlers = new Dictionary<ushort, NetworkMessageDelegate>();
|
||||
handlers.Add(MessagePacking.GetId<TestMessage>(), Handler);
|
||||
connectionToServer.SetHandlers(handlers);
|
||||
|
Loading…
Reference in New Issue
Block a user