component.gameObject.deregisterComponent(component);
}
if (component instanceof GeometryComponent) {
geometry = (GeometryComponent) component;
if (render == null) {
registerComponent(new RenderComponent());
}
} else if (component instanceof SpatialComponent) {
spatial = (SpatialComponent) component;
}
if (!components.contains(component)) {