Browse Source

Удаление ненужных более строк кода для UnityEditor

Unknown 6 years ago
parent
commit
ef9375036d

BIN
.vs/RR1st/v15/Server/sqlite3/storage.ide


BIN
.vs/RR1st/v15/Server/sqlite3/storage.ide-wal


+ 3 - 25
Assets/Scripts/Localizer/LocFP.cs

@@ -1,14 +1,11 @@
 using UnityEngine;
-using UnityEditor;
 using UnityEngine.UI;
 using System.Collections;
-using System;
 using System.IO;
 
 
-public class LocFP : EditorWindow
+public class LocFP 
 {
-
     int language = 3;
     string[] listLanguages = { "Danish", "English", "Finnish", "French", "Nordic", "Spanish", "Swedish" };
     string imageIndex = "Resources/Resources_EN";
@@ -16,9 +13,7 @@ public class LocFP : EditorWindow
 
     bool languageFilled = false;
 
-    private ArrayList listOfGameImages;
-
-    [MenuItem("Localizer/Scene FlowerpotPhonics")]
+    private ArrayList listOfGameImages;   
 
     static void Init()
     {
@@ -541,24 +536,7 @@ public class LocFP : EditorWindow
 
         Debug.Log("Items Deleted.");
     }
-
-    void OnGUI()
-    {
-        GUILayout.Label("Base Settings", EditorStyles.boldLabel);
-        //language = EditorGUILayout.TextField("Idioma", language.ToString());
-
-        Rect deleteButton = new Rect(3, 100, position.width - 6, 20);
-        Rect confirmButtonRect = new Rect(3, 60, position.width - 6, 20);
-
-
-        if (GUI.Button(confirmButtonRect, "Create Items")) {
-            CreateItems();
-        }
-
-        if (GUI.Button(deleteButton, "Delete items")) {
-            DeleteItemsGameObjects();
-        }
-    }
+   
     public void CreateItems()
     {
         CheckLanguageCamp();