mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 13:33:38 +02:00
fixed bug where non-script related content would be deleted on script ending
This commit is contained in:
parent
a9c5f044c8
commit
4c80633a41
1 changed files with 0 additions and 6 deletions
|
@ -160,11 +160,6 @@ function keyPressEvent(event) {
|
|||
}
|
||||
}
|
||||
|
||||
function cleanup() {
|
||||
Entities.deleteEntity(box);
|
||||
Entities.deleteEntity(box2);
|
||||
Entities.deleteEntity(ground);
|
||||
}
|
||||
|
||||
function setUpTestObjects() {
|
||||
var distance = 4;
|
||||
|
@ -235,4 +230,3 @@ Controller.mousePressEvent.connect(mousePressEvent);
|
|||
Controller.mouseReleaseEvent.connect(mouseReleaseEvent);
|
||||
Controller.keyPressEvent.connect(keyPressEvent);
|
||||
Controller.keyReleaseEvent.connect(keyReleaseEvent);
|
||||
Script.scriptEnding.connect(cleanup);
|
Loading…
Reference in a new issue