mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 05:24:06 +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);
|
||||
},
|
||||
cleanup: function() {
|
||||
Script.clearTimeout(this.timerID);
|
||||
if (this.timerID) {
|
||||
Script.clearTimeout(this.timerID);
|
||||
this.timerID = null;
|
||||
}
|
||||
hideEntitiesWithTag(this.tag);
|
||||
}
|
||||
};
|
||||
|
@ -809,7 +812,10 @@ function startTutorial() {
|
|||
new stepTurnAround("turnAround"),
|
||||
new stepTeleport("teleport"),
|
||||
new stepFinish("finish"),
|
||||
]
|
||||
];
|
||||
for (var i = 0; i < STEPS.length; ++i) {
|
||||
STEPS[i].cleanup();
|
||||
}
|
||||
//location = "/tutorial_begin";
|
||||
location = "/tutorial";
|
||||
startNextStep();
|
||||
|
|
Loading…
Reference in a new issue