History

Fix issues in several tutorial scripts

Ryan Huffman committed 10 years ago

Commit 97fbdc71 parent e58cd534 files · +24 −7Browse files

Showing the changes to tutorial/tutorialStartZone.js (1 of 4 files). Show all

Unified · Split

tutorial/tutorialStartZone.js+7−1
@@ -20,7 +20,7 @@ · 19 unmodified lines
20 print("TutorialStartZone | Parent ID is: ", parentID);20 print("TutorialStartZone | Parent ID is: ", parentID);
21 if (parentID) {21 if (parentID) {
22 print("TutorialStartZone | Sending start");22 print("TutorialStartZone | Sending start");
23 Entities.callEntityMethod(parentID, 'start');23 Entities.callEntityMethod(parentID, 'onEnteredStartZone');
24 } else {24 } else {
25 print("TutorialStartZone | ERROR: No parent id found on tutorial start zone");25 print("TutorialStartZone | ERROR: No parent id found on tutorial start zone");
26 }26 }
@@ -38,6 +38,12 @@ · 11 unmodified lines
38 if (this.sendStartIntervalID) {38 if (this.sendStartIntervalID) {
39 Script.clearInterval(this.sendStartIntervalID);39 Script.clearInterval(this.sendStartIntervalID);
40 }40 }
41 var parentID = Entities.getEntityProperties(this.entityID, 'parentID').parentID;
42 print("TutorialStartZone | Parent ID is: ", parentID);
43 if (parentID) {
44 print("TutorialStartZone | Sending onLeftStartZone");
45 Entities.callEntityMethod(parentID, 'on');
46 }
41 }47 }
42 };48 };
43 49

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t