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; } }
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; } }