removeVisible method

void removeVisible(
  1. GameComponent obj
)

Implementation

void removeVisible(GameComponent obj) {
  _visibleComponents.remove(obj);
  if (obj.containsShapeHitbox) {
    obj.children.query<ShapeHitbox>().forEach((element) {
      _visibleCollisions.remove(element);
    });
  }
}