private static void onClickedAddButton(SleekButton button) { if (MenuWorkshopEditorUI.mapNameField.text != string.Empty) { Level.add(MenuWorkshopEditorUI.mapNameField.text, MenuWorkshopEditorUI.mapSizeState.state + ELevelSize.SMALL, (MenuWorkshopEditorUI.mapTypeState.state != 0) ? ELevelType.ARENA : ELevelType.SURVIVAL); MenuWorkshopEditorUI.mapNameField.text = string.Empty; } }