From c74df965bac643794800da3daefe0b087c3417f7 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Wed, 21 Sep 2016 09:31:18 -0700 Subject: [PATCH] Fix misnamed function and duplicate onFinish in tutorial --- .../controllers/toggleAdvancedMovementForHandControllers.js | 2 +- tutorial/tutorial.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/system/controllers/toggleAdvancedMovementForHandControllers.js b/scripts/system/controllers/toggleAdvancedMovementForHandControllers.js index bd31c5c42e..b74fe52e42 100644 --- a/scripts/system/controllers/toggleAdvancedMovementForHandControllers.js +++ b/scripts/system/controllers/toggleAdvancedMovementForHandControllers.js @@ -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 diff --git a/tutorial/tutorial.js b/tutorial/tutorial.js index 59bc88363a..713b052412 100644 --- a/tutorial/tutorial.js +++ b/tutorial/tutorial.js @@ -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;