public override void OnInspectorGUI() { DrawDefaultInspector(); PathGrid script = (PathGrid)target; if (GUILayout.Button("Initialize Grid")) { script.InitializeGrid(); } }