// helper function to start reading a batch. void StartReadingBatch(NetworkWriterPooled batch) { // point reader to it reader.SetBuffer(batch.ToArraySegment()); // read remote timestamp (double) // -> AddBatch quarantees that we have at least 8 bytes to read readerRemoteTimeStamp = reader.ReadDouble(); }
public override void Deserialize(NetworkReader reader) { clientTime = reader.ReadDouble(); serverTime = reader.ReadDouble(); }
public override void Deserialize(NetworkReader reader) { value = reader.ReadDouble(); }
public void Deserialize(NetworkReader reader) { clientTime = reader.ReadDouble(); }
public void Deserialize(NetworkReader reader) { IntValue = reader.ReadInt32(); StringValue = reader.ReadString(); DoubleValue = reader.ReadDouble(); }