Showing the changes to tutorial/tutorialStartZone.js (1 of 4 files). Show all
Unified · Split
| @@ -20,7 +20,7 @@ · 19 unmodified lines | ||
| 20 | 20 | print("TutorialStartZone | Parent ID is: ", parentID); |
| 21 | 21 | if (parentID) { |
| 22 | 22 | print("TutorialStartZone | Sending start"); |
| 23 | − Entities.callEntityMethod(parentID, 'start'); | |
| 23 | + Entities.callEntityMethod(parentID, 'onEnteredStartZone'); | |
| 24 | 24 | } else { |
| 25 | 25 | print("TutorialStartZone | ERROR: No parent id found on tutorial start zone"); |
| 26 | 26 | } |
| @@ -38,6 +38,12 @@ · 11 unmodified lines | ||
| 38 | 38 | if (this.sendStartIntervalID) { |
| 39 | 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 | |