Skip to content

Commit 368e5a7

Browse files
committed
fix 2021 compile error
1 parent e03948f commit 368e5a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/Thirdweb/Plugins/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ public void OnPostBuildPlayerScriptDLLs(BuildReport report)
1818
if (report.summary.platform != BuildTarget.WebGL)
1919
return;
2020

21+
#if UNITY_2022_1_OR_NEWER
2122
var mscorLibDll = report.GetFiles().FirstOrDefault(f => f.path.EndsWith("mscorlib.dll")).path;
23+
#else
24+
var mscorLibDll = report.files.FirstOrDefault(f => f.path.EndsWith("mscorlib.dll")).path;
25+
#endif
2226
if (mscorLibDll == null)
2327
{
2428
Debug.LogError("Can't find mscorlib.dll in build dll files");

0 commit comments

Comments
 (0)