static private DestroyBlendTreeRecursive ( |
||
blendTree | ||
return | void |
internal static void DestroyBlendTreeRecursive(BlendTree blendTree) { for (int i = 0; i < blendTree.children.Length; i++) { BlendTree blendTree2 = blendTree.children[i].motion as BlendTree; if (blendTree2 != null && MecanimUtilities.AreSameAsset(blendTree, blendTree2)) { MecanimUtilities.DestroyBlendTreeRecursive(blendTree2); } } Undo.DestroyObjectImmediate(blendTree); }
internal static void DestroyBlendTreeRecursive(BlendTree blendTree) { for (int index = 0; index < blendTree.children.Length; ++index) { BlendTree motion = blendTree.children[index].motion as BlendTree; if ((Object)motion != (Object)null && MecanimUtilities.AreSameAsset((Object)blendTree, (Object)motion)) { MecanimUtilities.DestroyBlendTreeRecursive(motion); } } Undo.DestroyObjectImmediate((Object)blendTree); }