Exemplo n.º 1
0
        public static void SetLayerRecursively(GameObject gameObject, int layer)
        {
            gameObject.layer = layer;
            Transform transform  = gameObject.transform;
            int       i          = 0;
            int       childCount = transform.childCount;

            while (i < childCount)
            {
                UnityUtils.SetLayerRecursively(transform.GetChild(i).gameObject, layer);
                i++;
            }
        }
Exemplo n.º 2
0
 public unsafe static long $Invoke34(long instance, long *args)
 {
     UnityUtils.SetLayerRecursively((GameObject)GCHandledObjects.GCHandleToObject(*args), *(int *)(args + 1));
     return(-1L);
 }