public void Deserialize(NetBuffer reader) { RacerPositions.Clear(); reader.ReadList(buffer => new RacerPosition { RacerId = buffer.ReadObjectId(), Position = buffer.ReadVector3(), Rotation = buffer.ReadRotation() }, RacerPositions); }