From 2e2a6318a6bbe14466ee6d2039108e156e0c5bca Mon Sep 17 00:00:00 2001 From: Patterntrick Date: Thu, 16 Mar 2017 18:07:56 -0700 Subject: [PATCH] Update xylophoneKey.js --- xylophoneKey.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xylophoneKey.js b/xylophoneKey.js index 60241440ea..69ce38dfee 100644 --- a/xylophoneKey.js +++ b/xylophoneKey.js @@ -22,11 +22,6 @@ //_this.homePos = Entities.getEntityProperties(entityID, ["position"]).position; //Entities.editEntity(_this.entityID, {position: _this.homePos}); //This is the workaround for collisionWithEntity not being triggered after entity is reloaded. _this.sound = SoundCache.getSound(soundURL); - - MyAvatar.collisionWithEntity.connect(function(collision){ - print ("The avatar collided with an entity."); - if (!_this.isWaiting && collision.type == 0) {_this.hit();} - }); }, collisionWithEntity: function(thisEntity, otherEntity, collision) { @@ -60,4 +55,4 @@ return new XylophoneKey(); -}); \ No newline at end of file +});