enter and leave zone events
This commit is contained in:
parent
03cf5c05ff
commit
4d473480cf
5 changed files with 39 additions and 9 deletions
|
@ -798,9 +798,9 @@ export class GameScene extends DirtyScene {
|
|||
break;
|
||||
}
|
||||
}
|
||||
// zones.forEach((zone) => {
|
||||
// iframeListener.sendEnterLayerEvent(zone.name);
|
||||
// });
|
||||
zones.forEach((zone) => {
|
||||
iframeListener.sendEnterZoneEvent(zone.name);
|
||||
});
|
||||
});
|
||||
|
||||
this.gameMap.onLeaveZone((zones) => {
|
||||
|
@ -811,9 +811,9 @@ export class GameScene extends DirtyScene {
|
|||
break;
|
||||
}
|
||||
}
|
||||
// zones.forEach((zone) => {
|
||||
// iframeListener.sendEnterLayerEvent(zone.name);
|
||||
// });
|
||||
zones.forEach((zone) => {
|
||||
iframeListener.sendLeaveZoneEvent(zone.name);
|
||||
});
|
||||
});
|
||||
|
||||
// this.gameMap.onLeaveLayer((layers) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue