SamsonGame/Assets/Sources/Feel/MMTools/Tools/MMHelpers/MMLayers.cs

21 lines
318 B
C#

using UnityEngine;
using System.Collections;
namespace MoreMountains.Tools
{
public class MMLayers
{
public static bool LayerInLayerMask(int layer, LayerMask layerMask)
{
if(((1 << layer) & layerMask) != 0)
{
return true;
}
else
{
return false;
}
}
}
}