Update tutorialStartZone to send start to parent immediately

This commit is contained in:
Ryan Huffman 2016-10-04 11:19:44 -07:00
parent 504295cdcf
commit 1592394d6a

View file

@ -19,13 +19,14 @@
var parentID = Entities.getEntityProperties(self.entityID, 'parentID').parentID;
print("TutorialStartZone | Parent ID is: ", parentID);
if (parentID) {
print("TutorialStartZone | Entered the tutorial start area");
print("TutorialStartZone | Sending start");
Entities.callEntityMethod(parentID, 'start');
} else {
print("TutorialStartZone | ERROR: No parent id found on tutorial start zone");
}
}
this.sendStartIntervalID = Script.setInterval(sendStart, 1500);
sendStart();
} else {
print("TutorialStartZone | User tried to go to tutorial with HMD and hand controllers, sending back to /");
Window.alert("To proceed with this tutorial, please connect your VR headset and hand controllers.");