Skip to content

Commit

Permalink
Wrap layermask extension in macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Smidgens committed Dec 6, 2022
1 parent f450566 commit 1be3bc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Runtime/UnityEngine.LayerMask/LayerMask.HasLayer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// smidgens @ github

#if !EXT_0_UNITYENGINE_LAYERMASK

namespace Smidgenomics.Unity.Extensions
{
using UnityEngine;
Expand All @@ -18,4 +20,6 @@ public static bool HasLayer(this in LayerMask mask, in int layer)
return mask == (mask | (1 << layer));
}
}
}
}

#endif

0 comments on commit 1be3bc9

Please sign in to comment.