Beispiel #1
0
 private static void FixJavaScriptPragmas()
 {
     string[] paths = CollectBadFiles();
     if (paths.Length != 0)
     {
         if (!InternalEditorUtility.inBatchMode)
         {
             PragmaFixingWindow.ShowWindow(paths);
         }
         else
         {
             FixFiles(paths);
         }
     }
 }
 private static void FixJavaScriptPragmas()
 {
     string[] array = PragmaFixing30.CollectBadFiles();
     if (array.Length != 0)
     {
         if (!InternalEditorUtility.inBatchMode)
         {
             PragmaFixingWindow.ShowWindow(array);
         }
         else
         {
             PragmaFixing30.FixFiles(array);
         }
     }
 }
Beispiel #3
0
        static void FixJavaScriptPragmas()
        {
            string[] filesToFix = CollectBadFiles();
            if (filesToFix.Length == 0)
            {
                return;
            }

            if (!InternalEditorUtility.inBatchMode)
            {
                PragmaFixingWindow.ShowWindow(filesToFix);
            }
            else
            {
                FixFiles(filesToFix);
            }
        }