more logging

This commit is contained in:
ericrius1 2016-03-21 15:54:47 -07:00
parent b4509e428b
commit 98e43a8d0f

View file

@ -30,7 +30,7 @@
// We already have our injector so just restart it // We already have our injector so just restart it
_this.soundInjector.restart(); _this.soundInjector.restart();
} }
print("EBL ") print("EBL START UPDATE")
Entities.editEntity(_this.batonDebugModel, {visible: true}); Entities.editEntity(_this.batonDebugModel, {visible: true});
_this.playSoundInterval = Script.setInterval(function() { _this.playSoundInterval = Script.setInterval(function() {
// print("EBL PLAY THE SOUND"); // print("EBL PLAY THE SOUND");
@ -75,6 +75,7 @@
}, },
unload: function() { unload: function() {
print("EBL UNLOAD");
Entities.deleteEntity(_this.batonDebugModel); Entities.deleteEntity(_this.batonDebugModel);
if (_this.soundIntervalConnected === true) { if (_this.soundIntervalConnected === true) {
Script.clearInterval(_this.playSoundInterval); Script.clearInterval(_this.playSoundInterval);