namespace Zinnia.Extension { using UnityEngine; /// /// Extended methods for the Type. /// public static class LayerMaskExtensions { /// /// Sets the value to a single given int. /// /// The layer mask to update. /// The layer value to set. /// The updated. public static LayerMask Set(this LayerMask layerMask, int value) { return layerMask.Set(LayerMask.LayerToName(value)); } /// /// Sets the value to the given name. /// /// The layer mask to update. /// The layer name to set. /// The updated. public static LayerMask Set(this LayerMask layerMask, string name) { return LayerMask.GetMask(name); } } }