Exemple #1
0
        public static void RemoveColliders(GameObject gameObject)
        {
            Collider component = gameObject.GetComponent <Collider>();

            if (component != null)
            {
                UnityEngine.Object.Destroy(component);
            }
            int i          = 0;
            int childCount = gameObject.transform.childCount;

            while (i < childCount)
            {
                UnityUtils.RemoveColliders(gameObject.transform.GetChild(i).gameObject);
                i++;
            }
        }
Exemple #2
0
 public unsafe static long $Invoke32(long instance, long *args)
 {
     UnityUtils.RemoveColliders((GameObject)GCHandledObjects.GCHandleToObject(*args));
     return(-1L);
 }