protected void ShowControls()
{
if (this.m_Target == null)
{
this.m_Initialized = false;
}
this.Init();
base.serializedObject.Update();
int num = 0;
if (this.m_NetworkSendIntervalProperty.floatValue != 0f)
{
num = (int) (1f / this.m_NetworkSendIntervalProperty.floatValue);
}
int num2 = EditorGUILayout.IntSlider(this.m_NetworkSendIntervalLabel, num, 0, 30, new GUILayoutOption[0]);
if (num2 != num)
{
if (num2 == 0)
{
this.m_NetworkSendIntervalProperty.floatValue = 0f;
}
else
{
this.m_NetworkSendIntervalProperty.floatValue = 1f / ((float) num2);
}
}
if (EditorGUILayout.PropertyField(this.m_Target, new GUILayoutOption[0]) && (this.sync.GetComponent<NetworkTransform>() == null))
{
if (LogFilter.logError)
{
Debug.LogError("NetworkTransformChild must be on the root object with the NetworkTransform, not on the child node");
}
this.m_Target.objectReferenceValue = null;
}
EditorGUILayout.PropertyField(this.m_MovementThreshold, this.m_MovementThresholdLabel, new GUILayoutOption[0]);
if (this.m_MovementThreshold.floatValue < 0f)
{
this.m_MovementThreshold.floatValue = 0f;
EditorUtility.SetDirty(this.sync);
}
EditorGUILayout.PropertyField(this.m_InterpolateMovement, this.m_InterpolateMovementLabel, new GUILayoutOption[0]);
EditorGUILayout.PropertyField(this.m_InterpolateRotation, this.m_InterpolateRotationLabel, new GUILayoutOption[0]);
int num3 = EditorGUILayout.Popup("Rotation Axis", (int) this.sync.syncRotationAxis, axisOptions, new GUILayoutOption[0]);
if (num3 != this.sync.syncRotationAxis)
{
this.sync.syncRotationAxis = (NetworkTransform.AxisSyncMode) num3;
EditorUtility.SetDirty(this.sync);
}
EditorGUILayout.PropertyField(this.m_RotationSyncCompression, this.m_RotationSyncCompressionLabel, new GUILayoutOption[0]);
base.serializedObject.ApplyModifiedProperties();
}
}