onRemove method
Called right before the component is removed from the game.
Implementation
@override
void onRemove() {
super.onRemove();
_gameRef = null;
}
Called right before the component is removed from the game.
@override
void onRemove() {
super.onRemove();
_gameRef = null;
}