Skip to content

Commit dfbb041

Browse files
committed
Fix script define for correct unity version
1 parent 1c9a548 commit dfbb041

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/Scripts/Editor/UnityPackageScripts.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static class UnityPackageScripts
2121
{
2222
private static int ProgressId;
2323
private static ListRequest ListRequest;
24-
#if UNITY_2021_1_OR_NEWER
24+
#if UNITY_2021_2_OR_NEWER
2525
private static AddAndRemoveRequest AddAndRemoveRequest;
2626
#else
2727
private static AddRequest AddRequest;
@@ -128,7 +128,7 @@ private static void UpdatePackages()
128128
Progress.Report(ProgressId, 0.5f, $"Updating {toAdd.Count} packages: {string.Join(", ", toAdd)}");
129129
#endif
130130

131-
#if UNITY_2021_1_OR_NEWER
131+
#if UNITY_2021_2_OR_NEWER
132132
AddAndRemoveRequest = Client.AddAndRemove(toAdd.ToArray(), toRemove.ToArray());
133133
EditorApplication.update += OnWaitForPackageUpdates;
134134
#else
@@ -138,7 +138,7 @@ private static void UpdatePackages()
138138
#endif
139139
}
140140

141-
#if UNITY_2021_1_OR_NEWER
141+
#if UNITY_2021_2_OR_NEWER
142142
private static void OnWaitForPackageUpdates()
143143
{
144144
#if UNITY_2020_1_OR_NEWER

0 commit comments

Comments
 (0)