public override void OnInspectorGUI() { DrawDefaultInspector(); LootManager myScript = (LootManager)target; if (GUILayout.Button("Load LootDatabase")) { myScript.LoadDatabase(); } }