Showing the changes to scripts/system/controllers/controllerModules (1 of 1 file). Show all
Unified · Split
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | "use strict"; |
| 2 | 2 | |
| 3 | −// nearParentGrabEntity.js | |
| 3 | +// nearTrigger.js | |
| 4 | 4 | // |
| 5 | 5 | // Distributed under the Apache License, Version 2.0. |
| 6 | 6 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html |
| @@ -100,17 +100,17 @@ Script.include("/~/system/controllers/controllerDispatcherUtils.js"); · 93 unmodified lines | ||
| 100 | 100 | }; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | − var leftNearParentingGrabEntity = new NearTriggerEntity(LEFT_HAND); | |
| 104 | − var rightNearParentingGrabEntity = new NearTriggerEntity(RIGHT_HAND); | |
| 103 | + var leftNearTriggerEntity = new NearTriggerEntity(LEFT_HAND); | |
| 104 | + var rightNearTriggerEntity = new NearTriggerEntity(RIGHT_HAND); | |
| 105 | 105 | |
| 106 | − enableDispatcherModule("LeftNearParentingGrabEntity", leftNearParentingGrabEntity); | |
| 107 | − enableDispatcherModule("RightNearParentingGrabEntity", rightNearParentingGrabEntity); | |
| 106 | + enableDispatcherModule("LeftNearTriggerEntity", leftNearTriggerEntity); | |
| 107 | + enableDispatcherModule("RightNearTriggerEntity", rightNearTriggerEntity); | |
| 108 | 108 | |
| 109 | 109 | this.cleanup = function () { |
| 110 | − leftNearParentingGrabEntity.cleanup(); | |
| 111 | − rightNearParentingGrabEntity.cleanup(); | |
| 112 | − disableDispatcherModule("LeftNearParentingGrabEntity"); | |
| 113 | − disableDispatcherModule("RightNearParentingGrabEntity"); | |
| 110 | + leftNearTriggerEntity.cleanup(); | |
| 111 | + rightNearTriggerEntity.cleanup(); | |
| 112 | + disableDispatcherModule("LeftNearTriggerEntity"); | |
| 113 | + disableDispatcherModule("RightNearTriggerEntity"); | |
| 114 | 114 | }; |
| 115 | 115 | Script.scriptEnding.connect(this.cleanup); |
| 116 | 116 | }()); |