public override void OnInspectorGUI() { NodeScript script = (NodeScript)target; if (GUILayout.Button("Add Node")) { script.AddNode(); } if (GUILayout.Button("Remove Node")) { script.RemoveNode(); } DrawDefaultInspector(); }