markToRemove method

void markToRemove(
  1. Component c
)

Marks a component to be removed from the components list on the next game loop cycle

Implementation

void markToRemove(Component c) {
  _removeLater.add(c);
}