using UnityEngine; namespace AwesomeTechnologies.Utility.Extentions { public static class LayerMaskExtention { /// /// Extension method to check if a layer is in a layermask /// /// /// /// public static bool Contains(this LayerMask mask, int layer) { return mask == (mask | (1 << layer)); } } }