Add enters/leaves layer with api test map
This commit is contained in:
parent
db82ae4b88
commit
e1d454d834
3 changed files with 632 additions and 0 deletions
7
maps/tests/ChangeLayerApi/script.js
Normal file
7
maps/tests/ChangeLayerApi/script.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
WA.room.onEnterLayer('myLayer').subscribe(() => {
|
||||
WA.chat.sendChatMessage("Hello!", 'Wooka');
|
||||
});
|
||||
|
||||
WA.room.onLeaveLayer('myLayer').subscribe(() => {
|
||||
WA.chat.sendChatMessage("Goodbye!", 'Wooka');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue