コード例 #1
0
 private static void onClickedEdit2Button(SleekButton button)
 {
     if (PlaySettings.editorMap == null || PlaySettings.editorMap.Length == 0)
     {
         return;
     }
     for (int i = 0; i < MenuWorkshopEditorUI.levels.Length; i++)
     {
         if (MenuWorkshopEditorUI.levels[i] != null && MenuWorkshopEditorUI.levels[i].name == PlaySettings.editorMap && MenuWorkshopEditorUI.levels[i].isEditable)
         {
             MenuSettings.save();
             Level.edit(MenuWorkshopEditorUI.levels[i], true);
         }
     }
 }