修复Player.Build时,如果已经导出了工程,则不会混淆的bug
parent
d83df4a2a5
commit
7ca5ec54b1
|
@ -31,9 +31,10 @@ namespace Obfuz
|
|||
public void OnPreprocessBuild(BuildReport report)
|
||||
{
|
||||
s_obfuscated = false;
|
||||
FileUtil.RemoveDir(GetScriptAssembliesPath());
|
||||
}
|
||||
|
||||
private static string GetScriptAssembliesPath(object obj)
|
||||
private static string GetScriptAssembliesPath()
|
||||
{
|
||||
#if UNITY_2021_1_OR_NEWER
|
||||
//object settings = obj.GetType().GetProperty("settings").GetValue(obj);
|
||||
|
@ -53,7 +54,7 @@ namespace Obfuz
|
|||
}
|
||||
if (!s_obfuscated)
|
||||
{
|
||||
RunObfuscate(GetScriptAssembliesPath(obj));
|
||||
RunObfuscate(GetScriptAssembliesPath());
|
||||
s_obfuscated = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue