Add enters/leaves layer with api test map

This commit is contained in:
Alexis Faizeau 2021-10-29 17:37:29 +02:00
parent db82ae4b88
commit e1d454d834
3 changed files with 632 additions and 0 deletions

View 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');
});