Skip to content

Commit fa52b70

Browse files
committed
fixed compiler errors
1 parent 9e2689b commit fa52b70

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Code/Editor/Drawers/AssetRefDrawer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#if UNITY_2020_1_OR_NEWER
2+
#if INCLUDE_ADDRESSABLES
3+
using System.Runtime.CompilerServices;
4+
#endif
25
using System;
36
using System.Linq;
47
using OlegHcp;

Code/Runtime/OlegHcp/AssetRef.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#if UNITY_2020_1_OR_NEWER
22
#if INCLUDE_ADDRESSABLES
33
using UnityEngine.AddressableAssets;
4+
using System.Runtime.CompilerServices;
45
#endif
56
using System;
67
using UnityEngine;

Code/Runtime/System/Runtime/CompilerServices/SwitchExpressionException.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
namespace System.Runtime.CompilerServices
1+
#if !UNITY_2021_2_OR_NEWER
2+
namespace System.Runtime.CompilerServices
23
{
34
public sealed class SwitchExpressionException : InvalidOperationException
45
{
@@ -38,3 +39,4 @@ private static string GetValueMessage(object value)
3839
}
3940
}
4041
}
42+
#endif

0 commit comments

Comments
 (0)