Example #1
0
 private void StripColliders(ObjectToFade obj)
 {
     // Try to strip Colliders
     if (obj.Colliders.Length == 0)
         obj.IsStripped = true;
     else
     {
         for (int i=0; i<obj.Colliders.Length; i++)
             Destroy(obj.Colliders[i]);
         obj.IsStripped = true;
     }   
 }
Example #2
0
 private void StripColliders(ObjectToFade obj)
 {
     // Try to strip Colliders
     if (obj.Colliders.Length == 0)
     {
         obj.IsStripped = true;
     }
     else
     {
         for (int i = 0; i < obj.Colliders.Length; i++)
         {
             Destroy(obj.Colliders[i]);
         }
         obj.IsStripped = true;
     }
 }