protected override void OnMessageReceived(Event e) { NetworkLogger.Log($"Packet from client [{e.Peer.ID + 1}] on channel [{e.ChannelID}] with length [{e.Packet.Length}]", LogCategory.Packets); PayloadHandler.ProcessPacket(e.Packet); }
protected virtual void OnMessageReceived(Event e) { NetworkLogger.Log($"Packet from server on channel [{e.ChannelID}] with length [{e.Packet.Length}]", LogCategory.Packets); PayloadHandler.ProcessPacket(e.Packet); }