Exemplo n.º 1
0
 public static LayerMask AddToMask(this LayerMask original, params string[] layerNames)
 {
     return(original | LayerMaskExtensions.NamesToMask(layerNames));
 }
Exemplo n.º 2
0
        public static LayerMask RemoveFromMask(this LayerMask original, params string[] layerNames)
        {
            LayerMask mask = ~original;

            return(~(mask | LayerMaskExtensions.NamesToMask(layerNames)));
        }
Exemplo n.º 3
0
 public static LayerMask Create(params string[] layerNames)
 {
     return(LayerMaskExtensions.NamesToMask(layerNames));
 }