Commit e8d3d60c authored by wildfirecode's avatar wildfirecode

1

parent f8017ecd
......@@ -30,9 +30,13 @@ export default class SceneCtrl {
showAfterLoadAtlas(scene: Scene, data, onComplete: Function) {
if (this._currentScene) {
this._currentScene.destroy();
this._parent.removeChild(this._currentScene);
const oldScene = this._currentScene;
egret.Tween.get(oldScene).to({ alpha: 0 }, 0).call(() => {
oldScene.destroy();
this._parent.removeChild(oldScene);
});
}
egret.Tween.get(scene).set({ alpha: 0 }).to({ alpha: 1 }, 500);
scene.loadSkin();
scene.start();
this.addToStage(scene);
......
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