mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Update xylophoneKey.js
This commit is contained in:
parent
2b8ef35a6b
commit
2e2a6318a6
1 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue