remove method

GameEntity remove(
  1. GameEntity entity
)

Removes a game entity as a child from this game entity.

Implementation

GameEntity remove(GameEntity entity ) {
	final index = children.indexOf( entity );
	children.removeAt( index );

	entity.parent = null;

	return this;
}