onSetIfVisible method
Implementation
@override
void onSetIfVisible() {
super.onSetIfVisible();
if (isVisible) {
gameRef.lighting?.addVisibleLighting(this);
} else {
gameRef.lighting?.removeVisibleLighting(this);
}
}
@override
void onSetIfVisible() {
super.onSetIfVisible();
if (isVisible) {
gameRef.lighting?.addVisibleLighting(this);
} else {
gameRef.lighting?.removeVisibleLighting(this);
}
}