public override void OnInspectorGUI()
{
this.serializedObject.Update();
if (this.drawer != null)
{
if (this.script != null)
{
GUI.enabled = false;
EditorGUILayout.PropertyField(this.script);
GUI.enabled = true;
}
this.drawer.OnInspectorGUI();
}
else
{
this.DrawDefaultInspector();
}
this.serializedObject.ApplyModifiedProperties();
}