addVisible method

void addVisible(
  1. GameComponent obj
)

Implementation

void addVisible(GameComponent obj) {
  _visibleComponents.add(obj);
  if (obj.containsShapeHitbox) {
    _visibleCollisions.addAll(obj.children.query<ShapeHitbox>());
  }
}