Edit documentation exemples

This commit is contained in:
Benedicte Quimbert 2021-11-03 19:24:24 +01:00
parent f20c39f6a4
commit 854d8775d5
2 changed files with 7 additions and 7 deletions

View file

@ -15,7 +15,7 @@ When controls are disabled, the user cannot move anymore using keyboard input. T
Example:
```javascript
WA.room.onEnterZone('myZone', () => {
WA.room.onEnterLayer('myZone').subscribe(() => {
WA.controls.disablePlayerControls();
WA.ui.openPopup("popupRectangle", 'This is an imporant message!', [{
label: "Got it!",
@ -25,5 +25,5 @@ WA.room.onEnterZone('myZone', () => {
popup.close();
}
}]);
});
})
```