diff --git a/Editor/ObfuscationMethodWhitelist.cs b/Editor/ObfuscationMethodWhitelist.cs index 882eb8c..ff15a96 100644 --- a/Editor/ObfuscationMethodWhitelist.cs +++ b/Editor/ObfuscationMethodWhitelist.cs @@ -92,7 +92,7 @@ namespace Obfuz { return true; } - if (_obfuzComputeCache.HasSelfOrDeclaringOrEnclosingOrInheritObfuzIgnoreScope(type, type.DeclaringType, ObfuzScope.TypeName)) + if (_obfuzComputeCache.HasSelfOrDeclaringOrEnclosingOrInheritObfuzIgnoreScope(type, type.DeclaringType, ObfuzScope.MethodBody)) { return true; }