Files

29 lines
555 B
C#
Raw Permalink Normal View History

2026-02-21 16:58:22 -08:00
using UnityEngine;
namespace MoreMountains.Tools
{
[System.Serializable]
public class MMLayer
{
[SerializeField]
protected int _layerIndex = 0;
public int LayerIndex
{
get { return _layerIndex; }
}
public void Set(int _layerIndex)
{
if (_layerIndex > 0 && _layerIndex < 32)
{
this._layerIndex = _layerIndex;
}
}
public int Mask
{
get { return 1 << _layerIndex; }
}
}
}