detecting zoe enter and leave events
This commit is contained in:
parent
936a6bfeec
commit
eb95e2e483
7 changed files with 526 additions and 347 deletions
|
@ -778,6 +778,28 @@ export class GameScene extends DirtyScene {
|
|||
iframeListener.sendLeaveLayerEvent(layer.name);
|
||||
});
|
||||
});
|
||||
|
||||
this.gameMap.onEnterZone((zones) => {
|
||||
console.log('enter zones');
|
||||
console.log(zones);
|
||||
// zones.forEach((zone) => {
|
||||
// iframeListener.sendEnterLayerEvent(zone.name);
|
||||
// });
|
||||
});
|
||||
|
||||
this.gameMap.onLeaveZone((zones) => {
|
||||
console.log('leave zones');
|
||||
console.log(zones);
|
||||
// zones.forEach((zone) => {
|
||||
// iframeListener.sendEnterLayerEvent(zone.name);
|
||||
// });
|
||||
});
|
||||
|
||||
// this.gameMap.onLeaveLayer((layers) => {
|
||||
// layers.forEach((layer) => {
|
||||
// iframeListener.sendLeaveLayerEvent(layer.name);
|
||||
// });
|
||||
// });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue