onRemove method

void onRemove()

Called right before the component is removed from the game.

Implementation

void onRemove() {}