mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix showing of orient step entities in tutorial
This commit is contained in:
parent
8f536fcf5e
commit
938b22f1c7
1 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue