private void OnValidate()
{
if ((this.m_TransformSyncMode < TransformSyncMode.SyncNone) || (this.m_TransformSyncMode > TransformSyncMode.SyncCharacterController))
{
this.m_TransformSyncMode = TransformSyncMode.SyncTransform;
}
if (this.m_SendInterval < 0f)
{
this.m_SendInterval = 0f;
}
if ((this.m_SyncRotationAxis < AxisSyncMode.None) || (this.m_SyncRotationAxis > AxisSyncMode.AxisXYZ))
{
this.m_SyncRotationAxis = AxisSyncMode.None;
}
if (this.m_MovementTheshold < 0f)
{
this.m_MovementTheshold = 0f;
}
if (this.m_SnapThreshold < 0f)
{
this.m_SnapThreshold = 0.01f;
}
if (this.m_InterpolateRotation < 0f)
{
this.m_InterpolateRotation = 0.01f;
}
if (this.m_InterpolateMovement < 0f)
{
this.m_InterpolateMovement = 0.01f;
}
}