@momo2555/koppeliajs 0.0.133 → 0.0.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scripts/stage.js +2 -2
- package/package.json +1 -1
package/dist/scripts/stage.js
CHANGED
|
@@ -20,8 +20,6 @@ export class Stage {
|
|
|
20
20
|
this._console.sendMessage(req);
|
|
21
21
|
}
|
|
22
22
|
goto(stage) {
|
|
23
|
-
// Destroy all events before changing stage
|
|
24
|
-
this._console.destroyEvents();
|
|
25
23
|
let req = new Message();
|
|
26
24
|
req.setRequest("changeStage");
|
|
27
25
|
req.addParam("stage", stage);
|
|
@@ -34,6 +32,8 @@ export class Stage {
|
|
|
34
32
|
});
|
|
35
33
|
}
|
|
36
34
|
_onReceiveStage(from, receivedStage) {
|
|
35
|
+
// Destroy all events before changing stage
|
|
36
|
+
this._console.destroyEvents();
|
|
37
37
|
let path = "/game/" + get(routeType) + "/" + receivedStage;
|
|
38
38
|
goto(path);
|
|
39
39
|
}
|