Commit f9d40ee5 authored by wildfirecode13's avatar wildfirecode13

1

parent 58d875d3
No preview for this file type
This diff is collapsed.
......@@ -47,6 +47,13 @@ function launchWithCustomModule(customModule) {
setTimeout(() => {
engine.globalEvent.dispatchEvent('jump-high-start', {level: 1});
}, 500);
setTimeout(() => {
console.log('restart ')
engine.globalEvent.dispatchEvent('jump-high-reset', {level: 1});
engine.globalEvent.dispatchEvent('jump-high-start', {level: 1});
}, 15*1000);
});
}
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -55,7 +55,7 @@ export default class Player extends engine.Container {
this._aniName = name;
let oldAni = <svga.Svga>this.removeChild(this.getChildByName('body'));
if (oldAni) {
oldAni.stop();
oldAni.stop&& oldAni.stop();
}
let ani: svga.Svga = this._currentAni = this['ani' + name];
this.addChild(ani);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment