From 9c199b23a2b9b4240dba1b5bce535783fb9f64dc Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Tue, 29 Sep 2015 13:32:28 -0700 Subject: [PATCH] more debug --- examples/acScripts/flickeringLight.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/acScripts/flickeringLight.js b/examples/acScripts/flickeringLight.js index 93264e192c..571684b385 100644 --- a/examples/acScripts/flickeringLight.js +++ b/examples/acScripts/flickeringLight.js @@ -77,12 +77,12 @@ function update(deltaTime) { var intensity = (MINIMUM_LIGHT_INTENSITY + (MAXIMUM_LIGHT_INTENSITY + (Math.sin(totalTime) * MAXIMUM_LIGHT_INTENSITY))); intensity += randFloat(-LIGHT_INTENSITY_RANDOMNESS, LIGHT_INTENSITY_RANDOMNESS); var properties = Entities.getEntityProperties(LightMaker.light, ["age", "lifetime"]); - print("props:" +JSON.stringify(properties)); - print("age:" + properties.age); - print("lifetime:" + properties.lifetime); + //print("props:" +JSON.stringify(properties)); + //print("age:" + properties.age); + //print("lifetime:" + properties.lifetime); var newLifetime = properties.age + EPHEMERAL_LIFETIME; - print("newLifetime:" + newLifetime); - Entities.editEntity(LightMaker.light, { intensity : intensity, lifetime: newLifetime }); + //print("newLifetime:" + newLifetime); + Entities.editEntity(LightMaker.light, { type: "Light", intensity : intensity, lifetime: newLifetime }); } }