2 public struct LayerMask
5 public static implicit operator int (LayerMask mask) { return (int)mask.mask; }
6 public static implicit operator LayerMask (int intVal)
9 mask.mask = unchecked ((ushort)intVal);
16 static private LayerMask test;
17 static public void Main ()
20 if (a != 0xFFFF) // LayerMask is an ushort internally
21 throw new Exception ("");