So im trying Instantiate, when object is destroyed, but when exiting from game to editor caused “IsPlayingOrAllowExecuteInEditMode” , i found solution :
I quite imagine that objects are destroyed before the application quits.
This simply means that at the point that OnDestroy() is called, isQuitting = false;.
It follows that your megaBomb is attempting to Instantiate and as a result the GameObject itself can not be destroyed. If that attempt is successful you also have another object that will have potentially missed the round of Destroy()s.