public override void OnInspectorGUI() { RoomGenerator roomGenerator = target as RoomGenerator; if (GUILayout.Button("Generate Room")) { roomGenerator.GenerateRoom(); } if (GUILayout.Button("Delete Room")) { roomGenerator.DestroyRoom(); } DrawDefaultInspector(); }