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

21 lines
318 B
C#
Raw Normal View History

2021-12-29 20:50:11 +03:00
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;
}
}
}
}