private void UnserializeModeTransform(NetworkReader reader, bool initialState)
{
if (base.hasAuthority)
{
reader.ReadVector3();
if (this.syncRotationAxis != AxisSyncMode.None)
{
UnserializeRotation3D(reader, this.syncRotationAxis, this.rotationSyncCompression);
}
}
else if (base.isServer && (this.m_ClientMoveCallback3D != null))
{
Vector3 position = reader.ReadVector3();
Vector3 zero = Vector3.zero;
Quaternion identity = Quaternion.identity;
if (this.syncRotationAxis != AxisSyncMode.None)
{
identity = UnserializeRotation3D(reader, this.syncRotationAxis, this.rotationSyncCompression);
}
if (this.m_ClientMoveCallback3D(ref position, ref zero, ref identity))
{
base.transform.position = position;
if (this.syncRotationAxis != AxisSyncMode.None)
{
base.transform.rotation = identity;
}
}
}
else
{
base.transform.position = reader.ReadVector3();
if (this.syncRotationAxis != AxisSyncMode.None)
{
base.transform.rotation = UnserializeRotation3D(reader, this.syncRotationAxis, this.rotationSyncCompression);
}
}
}