content/hifi-content/liv/3DModels/watch/watchBehavior.js
2022-02-14 02:04:11 +01:00

12 lines
No EOL
363 B
JavaScript

(function () {
this.preload = function (entityID) {
},
this.collisionWithEntity = function (myID, otherID, collision) {
print("Collision has occurred");
if (Entities.getEntityProperties(otherID, ['name']).name === "WatchCollider") {
AudioDevice.toggleMute();
}
}
});