mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:06:02 +02:00
Add proper cleanup on start of tutorial
This commit is contained in:
parent
4adc83da84
commit
8d2f558ac3
1 changed files with 8 additions and 2 deletions
|
@ -226,7 +226,10 @@ stepWelcome.prototype = {
|
||||||
showEntitiesWithTag(this.tag);
|
showEntitiesWithTag(this.tag);
|
||||||
},
|
},
|
||||||
cleanup: function() {
|
cleanup: function() {
|
||||||
Script.clearTimeout(this.timerID);
|
if (this.timerID) {
|
||||||
|
Script.clearTimeout(this.timerID);
|
||||||
|
this.timerID = null;
|
||||||
|
}
|
||||||
hideEntitiesWithTag(this.tag);
|
hideEntitiesWithTag(this.tag);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -809,7 +812,10 @@ function startTutorial() {
|
||||||
new stepTurnAround("turnAround"),
|
new stepTurnAround("turnAround"),
|
||||||
new stepTeleport("teleport"),
|
new stepTeleport("teleport"),
|
||||||
new stepFinish("finish"),
|
new stepFinish("finish"),
|
||||||
]
|
];
|
||||||
|
for (var i = 0; i < STEPS.length; ++i) {
|
||||||
|
STEPS[i].cleanup();
|
||||||
|
}
|
||||||
//location = "/tutorial_begin";
|
//location = "/tutorial_begin";
|
||||||
location = "/tutorial";
|
location = "/tutorial";
|
||||||
startNextStep();
|
startNextStep();
|
||||||
|
|
Loading…
Reference in a new issue