Esempio n. 1
0
        // 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();
        }
Esempio n. 2
0
 public override void Deserialize(NetworkReader reader)
 {
     clientTime = reader.ReadDouble();
     serverTime = reader.ReadDouble();
 }
Esempio n. 3
0
 public override void Deserialize(NetworkReader reader)
 {
     value = reader.ReadDouble();
 }
Esempio n. 4
0
 public void Deserialize(NetworkReader reader)
 {
     clientTime = reader.ReadDouble();
 }
Esempio n. 5
0
 public void Deserialize(NetworkReader reader)
 {
     IntValue    = reader.ReadInt32();
     StringValue = reader.ReadString();
     DoubleValue = reader.ReadDouble();
 }