wip
This commit is contained in:
parent
603045bcad
commit
f20c39f6a4
@ -1,16 +1,19 @@
|
||||
WA.onInit().then(() => {
|
||||
let message;
|
||||
console.log('the right place!')
|
||||
|
||||
WA.room.onEnterZone("carpet", () => {
|
||||
WA.room.onEnterLayer("carpet").subscribe(() => {
|
||||
message = WA.ui.displayActionMessage({
|
||||
message: "This is a test message. Press space to display a chat message. Walk out to hide the message.",
|
||||
message:
|
||||
"This is a bis test message. Press space to display a chat message. Walk out to hide the message.",
|
||||
callback: () => {
|
||||
WA.chat.sendChatMessage("Hello world!", "The bot");
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
WA.room.onLeaveZone("carpet", () => {
|
||||
|
||||
WA.room.onLeaveLayer("carpet").subscribe(() => {
|
||||
message && message.remove();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user