From 6f98e2f0557cecffb195b8c130ca6b2f6821a5b6 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Mon, 12 Dec 2016 11:15:25 -0800 Subject: [PATCH] Fix showing of orient step entities in tutorial --- tutorial/tutorial.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tutorial/tutorial.js b/tutorial/tutorial.js index 4c885ba21a..51fd2177bc 100644 --- a/tutorial/tutorial.js +++ b/tutorial/tutorial.js @@ -254,6 +254,8 @@ function showEntitiesWithTag(tag) { debug("Showing: ", entityID, ", Is in local tree: ", isEntityInLocalTree(entityID)); Entities.editEntity(entityID, newProperties); } + } else { + debug("ERROR | No entities for tag: ", tag); } // Dynamic method, suppressed for now @@ -460,8 +462,8 @@ stepEnableControllers.prototype = { // STEP: Orient and raise hands above head // // // /////////////////////////////////////////////////////////////////////////////// -var stepOrient = function() { - this.tag = "orient"; +var stepOrient = function(tutorialManager) { + this.tags = ["orient", "orient-" + tutorialManager.controllerName]; } stepOrient.prototype = { start: function(onFinish) { @@ -470,7 +472,8 @@ stepOrient.prototype = { var tag = this.tag; // Spawn content set - editEntitiesWithTag(this.tag, { visible: true }); + //editEntitiesWithTag(this.tag, { visible: true }); + showEntitiesWithTags(this.tags); this.checkIntervalID = null; function checkForHandsAboveHead() { @@ -499,7 +502,8 @@ stepOrient.prototype = { Script.clearInterval(this.checkIntervalID); this.checkIntervalID = null; } - editEntitiesWithTag(this.tag, { visible: false, collisionless: 1 }); + //editEntitiesWithTag(this.tag, { visible: false, collisionless: 1 }); + hideEntitiesWithTags(this.tags); } };