componentRemoved method
- GameObject object,
- Component component
Called when component leaves the world, for each componentAdded
had: it's removed from object, or object is destroyed (then
GameObject.isDestroyed is true, and it's called for each of its
components, after every onDestroy). The component is
Component.isRemoved by then.
Implementation
@protected
@mustCallSuper
void componentRemoved(GameObject object, Component component) {}