Fix misnamed function and duplicate onFinish in tutorial

This commit is contained in:
Ryan Huffman 2016-09-21 09:31:18 -07:00
parent e24a01d1fe
commit c74df965ba
2 changed files with 3 additions and 4 deletions

View file

@ -160,6 +160,6 @@ function handleMessage(channel, message, sender) {
}
Messages.subscribe(HIFI_ADVANCED_MOVEMENT_DISABLER_CHANNEL);
Messages.messageReceived.connect(handleHandMessages);
Messages.messageReceived.connect(handleMessage);
}()); // END LOCAL_SCOPE

View file

@ -228,7 +228,6 @@ stepDisableControllers.prototype = {
setControllerPartLayer('tips', 'blank');
hideEntitiesWithTag('finish');
onFinish();
onFinish();
},
@ -364,7 +363,7 @@ stepOrient.prototype = {
this.checkIntervalID = null;
function checkForHandsAboveHead() {
print("Checking for hands above head...");
print("Orient: Checking for hands above head...");
if (MyAvatar.getLeftPalmPosition().y > (MyAvatar.getHeadPosition().y + 0.1)) {
Script.clearInterval(this.checkIntervalID);
this.checkIntervalID = null;
@ -431,7 +430,7 @@ stepRaiseAboveHead.prototype = {
this.waitTimeoutID = Script.setTimeout(function() {
this.checkIntervalID = null;
function checkForHandsAboveHead() {
print("Checking for hands above head...");
print("Raise above head: Checking for hands above head...");
if (MyAvatar.getLeftPalmPosition().y > (MyAvatar.getHeadPosition().y + 0.1)) {
Script.clearInterval(this.checkIntervalID);
this.checkIntervalID = null;