removed logging

This commit is contained in:
ericrius1 2016-03-17 10:51:10 -07:00
parent 16b98b53f3
commit 6adb46199c

View file

@ -17,6 +17,7 @@
_this.TIME_CHECK_REFRACTORY_PERIOD = 5000; _this.TIME_CHECK_REFRACTORY_PERIOD = 5000;
_this.checkTime = true; _this.checkTime = true;
_this.cuckooSound = SoundCache.getSound(CUCKOO_SOUND_URL); _this.cuckooSound = SoundCache.getSound(CUCKOO_SOUND_URL);
_this.CUCKOO_SOUND_VOLUME = 0.7;
}; };
@ -70,12 +71,11 @@
update: function() { update: function() {
_this.clockBodyAnimationProps = Entities.getEntityProperties(_this.clockBody, "animation").animation; _this.clockBodyAnimationProps = Entities.getEntityProperties(_this.clockBody, "animation").animation;
if (!_this.clockBodyAnimationProps) { if (!_this.clockBodyAnimationProps) {
print("NO CLOCK BODY ANIMATION PROPS! RETURNING"); // print("NO CLOCK BODY ANIMATION PROPS! RETURNING");
return; return;
} }
if (_this.checkTime === false) { if (_this.checkTime === false) {
print("We are in our refractory period. Please wait.");
return; return;
} }
var date = new Date(); var date = new Date();
@ -97,7 +97,7 @@
_this.position = Entities.getEntityProperties(_this.entityID, "position").position; _this.position = Entities.getEntityProperties(_this.entityID, "position").position;
if(!_this.cuckooSoundInjector) { if(!_this.cuckooSoundInjector) {
_this.cuckooSoundInjector = Audio.playSound(_this.cuckooSound, {position: _this.position}); _this.cuckooSoundInjector = Audio.playSound(_this.cuckooSound, {position: _this.position, volume: _this.CUCKOO_SOUND_VOLUME});
} else { } else {
_this.cuckooSoundInjector.stop(); _this.cuckooSoundInjector.stop();
_this.cuckooSoundInjector.restart(); _this.cuckooSoundInjector.restart();