Skip to content

Commit d0cb4af

Browse files
Merge pull request #30 from pollen-robotics/29-build-of-application-fails
bug #29 : use macro UNITY_EDITOR to allow build
2 parents 3275a1e + 8c3fede commit d0cb4af

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Packages/ReachySimulator/Editor/DownloadTask.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Net;
55
using System.IO.Compression;
66

7+
#if UNITY_EDITOR
78
public class DownloadTask
89
{
910
private static string savePath;
@@ -32,4 +33,5 @@ private static async Task _Unzip()
3233
{
3334
await Task.Run(() => ZipFile.ExtractToDirectory(savePath, @"Assets/"));
3435
}
35-
}
36+
}
37+
#endif

Packages/ReachySimulator/Editor/MenuConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using UnityEngine;
44
using UnityEditor;
55

6+
#if UNITY_EDITOR
67
public class MenuConfiguration : Editor
78
{
89

@@ -14,3 +15,4 @@ static void InstallGRPC()
1415
DownloadTask.RunTask();
1516
}
1617
}
18+
#endif

0 commit comments

Comments
 (0)