Obtenez GameObject LayerMask

gameObject.layer;
MunchDuster