Skip to content

Commit

Permalink
fixed compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
oleghcp committed Sep 24, 2024
1 parent 9e2689b commit fa52b70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Code/Editor/Drawers/AssetRefDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#if UNITY_2020_1_OR_NEWER
#if INCLUDE_ADDRESSABLES
using System.Runtime.CompilerServices;
#endif
using System;
using System.Linq;
using OlegHcp;
Expand Down
1 change: 1 addition & 0 deletions Code/Runtime/OlegHcp/AssetRef.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#if UNITY_2020_1_OR_NEWER
#if INCLUDE_ADDRESSABLES
using UnityEngine.AddressableAssets;
using System.Runtime.CompilerServices;
#endif
using System;
using UnityEngine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace System.Runtime.CompilerServices
#if !UNITY_2021_2_OR_NEWER
namespace System.Runtime.CompilerServices
{
public sealed class SwitchExpressionException : InvalidOperationException
{
Expand Down Expand Up @@ -38,3 +39,4 @@ private static string GetValueMessage(object value)
}
}
}
#endif

0 comments on commit fa52b70

Please sign in to comment.