issues with zone triggering fixed
This commit is contained in:
parent
37949eda53
commit
a1a83775d6
1 changed files with 6 additions and 6 deletions
|
@ -116,6 +116,7 @@ export class GameMap {
|
|||
public setPosition(x: number, y: number) {
|
||||
this.oldPosition = this.position;
|
||||
this.position = { x, y };
|
||||
this.triggerZonesChange();
|
||||
|
||||
this.oldKey = this.key;
|
||||
|
||||
|
@ -131,7 +132,6 @@ export class GameMap {
|
|||
|
||||
this.triggerAllProperties();
|
||||
this.triggerLayersChange();
|
||||
this.triggerZonesChange();
|
||||
}
|
||||
|
||||
private triggerAllProperties(): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue