|
@@ -27,7 +27,7 @@ export class ElementAction extends Component {
|
|
|
const worldPos = this.node.getWorldPosition();
|
|
|
|
|
|
if (worldPos.y <= this.parking.getWorldPosition().y) {
|
|
|
- EventDispatcher.instance.emit(GameEvent.EVENT_UPDATE_LAYER);
|
|
|
+ // EventDispatcher.instance.emit(GameEvent.EVENT_UPDATE_LAYER);
|
|
|
}
|
|
|
|
|
|
if (currentPosition.y < - view.getVisibleSize().height) {
|
|
@@ -39,6 +39,7 @@ export class ElementAction extends Component {
|
|
|
if (isValid(this.node)) {
|
|
|
this.node.removeFromParent();
|
|
|
this.node.destroy();
|
|
|
+ EventDispatcher.instance.emit(GameEvent.EVENT_UPDATE_LAYER);
|
|
|
}
|
|
|
}
|
|
|
|