private void SerializeModeCharacterController(NetworkWriter writer)
{
if (base.isServer && (this.m_LastClientSyncTime != 0f))
{
writer.Write(this.m_TargetSyncPosition);
if (this.syncRotationAxis != AxisSyncMode.None)
{
SerializeRotation3D(writer, this.m_TargetSyncRotation3D, this.syncRotationAxis, this.rotationSyncCompression);
}
}
else
{
writer.Write(base.transform.position);
if (this.syncRotationAxis != AxisSyncMode.None)
{
SerializeRotation3D(writer, base.transform.rotation, this.syncRotationAxis, this.rotationSyncCompression);
}
}
this.m_PrevPosition = base.transform.position;
this.m_PrevRotation = base.transform.rotation;
this.m_PrevVelocity = 0f;
}