| 46 | } |
| 47 | |
| 48 | void PlatformWorld::removeChild(Node* child, bool cleanup) { |
| 49 | Node* layer = PlatformWorld::getLayer(child->getOrder()); |
| 50 | if (layer == child) |
| 51 | PhysicsWorld::removeChild(child, cleanup); |
| 52 | else |
| 53 | layer->removeChild(child, cleanup); |
| 54 | } |
| 55 | |
| 56 | Node* PlatformWorld::getLayer(int order) { |
| 57 | auto it = _layers.find(order); |