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/MMUtilities/MMLayer.cs

29 lines
444 B
C#

3 months ago
using UnityEngine;
namespace MoreMountains.Tools
{
[System.Serializable]
public class MMLayer
{
[SerializeField]
protected int _layerIndex = 0;
public virtual int LayerIndex
{
get { return _layerIndex; }
}
public virtual void Set(int _layerIndex)
{
if (_layerIndex > 0 && _layerIndex < 32)
{
this._layerIndex = _layerIndex;
}
}
public virtual int Mask
{
get { return 1 << _layerIndex; }
}
}
}