public override void OnInspectorGUI() { DrawDefaultInspector(); CreateMap createMap = (CreateMap)target; if (GUILayout.Button("Restart")) { createMap.RecreateMap(); } if (GUILayout.Button("Save")) { createMap.SaveMap(); } }