|
@@ -74,6 +74,7 @@ export class LevelAction extends Component {
|
|
|
}
|
|
|
}, this);
|
|
|
EventDispatcher.instance.on(GameEvent.EVENT_COCKTAIL_CUP_DESTROYED, this.handleCupDestroyed, this);
|
|
|
+ EventDispatcher.instance.on(GameEvent.EVENT_RIGHT_CUP_FULL, this.addWaitCupToOutArea, this);
|
|
|
}
|
|
|
|
|
|
unregisterListener() {
|
|
@@ -81,6 +82,7 @@ export class LevelAction extends Component {
|
|
|
EventDispatcher.instance.off(GameEvent.EVENT_CLICK_ORIGIN_CUP, this.handlePourOriginCup, this);
|
|
|
EventDispatcher.instance.off(GameEvent.EVENT_ORIGIN_CUP_DESTROYED, this.spawnNewOriginCup, this);
|
|
|
EventDispatcher.instance.off(GameEvent.EVENT_COCKTAIL_CUP_DESTROYED, this.handleCupDestroyed, this);
|
|
|
+ EventDispatcher.instance.off(GameEvent.EVENT_RIGHT_CUP_FULL, this.addWaitCupToOutArea, this);
|
|
|
}
|
|
|
|
|
|
private async generateInitialCups() {
|