From 6adb46199c60bb9a75e02b3d71d77c1e4738fff1 Mon Sep 17 00:00:00 2001 From: ericrius1 Date: Thu, 17 Mar 2016 10:51:10 -0700 Subject: [PATCH] removed logging --- .../Home/cuckooClock/cuckooClockMinuteHandEntityScript.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unpublishedScripts/DomainContent/Home/cuckooClock/cuckooClockMinuteHandEntityScript.js b/unpublishedScripts/DomainContent/Home/cuckooClock/cuckooClockMinuteHandEntityScript.js index a301457c52..0c4964ec47 100644 --- a/unpublishedScripts/DomainContent/Home/cuckooClock/cuckooClockMinuteHandEntityScript.js +++ b/unpublishedScripts/DomainContent/Home/cuckooClock/cuckooClockMinuteHandEntityScript.js @@ -17,6 +17,7 @@ _this.TIME_CHECK_REFRACTORY_PERIOD = 5000; _this.checkTime = true; _this.cuckooSound = SoundCache.getSound(CUCKOO_SOUND_URL); + _this.CUCKOO_SOUND_VOLUME = 0.7; }; @@ -70,12 +71,11 @@ update: function() { _this.clockBodyAnimationProps = Entities.getEntityProperties(_this.clockBody, "animation").animation; if (!_this.clockBodyAnimationProps) { - print("NO CLOCK BODY ANIMATION PROPS! RETURNING"); + // print("NO CLOCK BODY ANIMATION PROPS! RETURNING"); return; } if (_this.checkTime === false) { - print("We are in our refractory period. Please wait."); return; } var date = new Date(); @@ -97,7 +97,7 @@ _this.position = Entities.getEntityProperties(_this.entityID, "position").position; 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 { _this.cuckooSoundInjector.stop(); _this.cuckooSoundInjector.restart();