NetSerializerReadPacket Method (NetDataReader, Object) |
LiteNetLib |
Reads one packet from NetDataReader and calls OnReceive delegate
Namespace: LiteNetLib.Utils
Assembly: LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax
C#
public void ReadPacket( NetDataReader reader, Object userData )
Parameters
- reader
- Type: LiteNetLib.UtilsNetDataReader
NetDataReader with packet - userData
- Type: SystemObject
Argument that passed to OnReceivedEvent
See Also