According to the Destroy () docs, "The actual destruction of an object is always delayed until the current update cycle, but will always be done before rendering."
Could this be a problem? If you check inside the current update function, the object has not yet been destroyed. Otherwise, Destroy () must remove all components of this GameObject.
source share