@@ -89,3 +89,5 @@ Publish/
/Unity/Assets/Bundles/AotDlls.meta
/Unity/HybridCLRData
/Unity/Assembly-CSharp-firstpass.csproj
+
+/Unity/*.csproj
@@ -40,6 +40,11 @@ namespace ET
}
else
{
+ if (Define.IsDebug)
+ {
+ content = content.Replace("<Optimize>false</Optimize>", "<Optimize>true</Optimize>");
+ }
if (path.EndsWith("Unity.Hotfix.csproj"))
content = content.Replace("<Compile Include=\"Assets\\Scripts\\Empty\\Hotfix\\Empty.cs\" />", string.Empty);
@@ -4,6 +4,11 @@
public const string CodeDir = "Assets/Bundles/Code/";
public const string BuildOutputDir = "Temp/Bin/Debug";
+#if DEBUG
+ public static bool IsDebug = true;
+#else
+ public static bool IsDebug = false;
+#endif
#if UNITY_EDITOR && !ASYNC
public static bool IsAsync = false;