public void Init()
{
if (!this.m_Initialized)
{
this.m_Initialized = true;
this.sync = base.target as NetworkTransformChild;
this.m_Target = base.serializedObject.FindProperty("m_Target");
if (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;
}
this.m_MovementThreshold = base.serializedObject.FindProperty("m_MovementThreshold");
this.m_InterpolateRotation = base.serializedObject.FindProperty("m_InterpolateRotation");
this.m_InterpolateMovement = base.serializedObject.FindProperty("m_InterpolateMovement");
this.m_RotationSyncCompression = base.serializedObject.FindProperty("m_RotationSyncCompression");
this.m_NetworkSendIntervalProperty = base.serializedObject.FindProperty("m_SendInterval");
this.m_NetworkSendIntervalLabel = new GUIContent("Network Send Rate (seconds)", "Number of network updates per second");
EditorGUI.indentLevel++;
this.m_MovementThresholdLabel = new GUIContent("Movement Threshold");
this.m_InterpolateRotationLabel = new GUIContent("Interpolate Rotation Factor");
this.m_InterpolateMovementLabel = new GUIContent("Interpolate Movement Factor");
this.m_RotationSyncCompressionLabel = new GUIContent("Compress Rotation");
EditorGUI.indentLevel--;
}
}