Adding the notion of silent zone
This commit is contained in:
@@ -450,6 +450,14 @@ export class GameScene extends Phaser.Scene implements CenterListener {
|
||||
}));
|
||||
this.connection.setSilent(true);
|
||||
}
|
||||
})
|
||||
|
||||
this.gameMap.onPropertyChange('silent', (newValue, oldValue) => {
|
||||
if (newValue === undefined || newValue === false || newValue === '') {
|
||||
this.connection.setSilent(false);
|
||||
} else {
|
||||
this.connection.setSilent(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user