Prechádzať zdrojové kódy

自动编译hotfix还有个文件没提交,先注释掉

tanghai 7 rokov pred
rodič
commit
e9ab3322b3

+ 28 - 25
Unity/Assets/Editor/BuildEditor/BuildHotifxEditor.cs

@@ -4,29 +4,32 @@ using UnityEngine;
 
 namespace ETEditor
 {
-#if !ASYNC && !ILRUNTIME
-    public class BuildHotifxEditor
-    {
-        [RuntimeInitializeOnLoadMethod ( RuntimeInitializeLoadType.BeforeSceneLoad )]
-        static void BeforeSceneLoad ()
-        {
-            string batPath = Application.dataPath + "/../Tools/DevAutoCompile.bat";
-
-            ProcessStartInfo info = new ProcessStartInfo
-            {
-                    FileName = batPath, WindowStyle = ProcessWindowStyle.Hidden, ErrorDialog = true,
-                    UseShellExecute = Application.platform == RuntimePlatform.WindowsEditor, Arguments = $"\"{MSBuildPath}\" \"{HotfixPath}\""
-            };
-
-            Process p = Process.Start ( info );
-            p.WaitForExit ();
-
-            AssetDatabase.Refresh ();
-        }
-
-        private const string MSBuildPath = "D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat";
-
-        private const string HotfixPath = "D:\\Projects\\Unity Project\\TDGo\\Client\\Trunk\\Client\\Hotfix\\Unity.Hotfix.csproj";
-    }
-#endif
+//#if !ASYNC && !ILRUNTIME
+//    public class BuildHotifxEditor
+//    {
+//        [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad )]
+//        private static void BeforeSceneLoad ()
+//        {
+//            string batPath = $"../Tools/DevAutoCompile.bat";
+//
+//            ProcessStartInfo info = new ProcessStartInfo
+//            {
+//                FileName = batPath,
+//                WindowStyle = ProcessWindowStyle.Hidden,
+//                ErrorDialog = true,
+//                UseShellExecute = Application.platform == RuntimePlatform.WindowsEditor,
+//                Arguments = $"\"{MSBuildPath}\" \"{HotfixPath}\""
+//            };
+//
+//            Process p = Process.Start ( info );
+//            p.WaitForExit ();
+//
+//            AssetDatabase.Refresh ();
+//        }
+//
+//        private const string MSBuildPath = "D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat";
+//
+//        private const string HotfixPath = "D:\\Projects\\Unity Project\\TDGo\\Client\\Trunk\\Client\\Hotfix\\Unity.Hotfix.csproj";
+//    }
+//#endif
 }