public override void OnInspectorGUI() { DrawDefaultInspector(); Array script = (Array)target; GUILayout.Space(5); if (GUILayout.Button("Respawn")) { script.Respawn(); } }