You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Feel/MMTools/Tools/MMHelpers/MMLayers.cs

21 lines
298 B
C#

1 month ago
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;
}
}
}
}