void Generate()
        {
            CaveGeneratorUI caveGenerator = (CaveGeneratorUI)target;

            switch (caveGenType)
            {
            case CaveGeneratorUI.CaveGeneratorType.ThreeTiered:
                caveGenerator.GenerateThreeTier();
                break;

            case CaveGeneratorUI.CaveGeneratorType.RockOutline:
                caveGenerator.GenerateRockCave();
                break;

            default:
                throw CaveGenTypeException;
            }
        }
 void DrawButtons()
 {
     if (Application.isPlaying)
     {
         if (GUILayout.Button(GENERATE_CAVE_BUTTON_LABEL))
         {
             DestroyCave();
             CaveGeneratorUI caveGenerator = (CaveGeneratorUI)target;
             caveGenerator.Generate();
         }
         if (GUILayout.Button(SAVE_MAP_LABEL))
         {
             CreateMap();
         }
         if (GUILayout.Button(CONVERT_PREFAB_BUTTON_LABEL))
         {
             TryCreatePrefab();
             DestroyCave();
         }
     }
 }