122 GameObject.DestroyImmediate(toDestroy);
124 catch(System.InvalidOperationException) {
125 PrefabUtility.UnpackPrefabInstance(wizardTarget, PrefabUnpackMode.OutermostRoot, InteractionMode.AutomatedAction);
126 GameObject.DestroyImmediate(toDestroy);