Commit e1f049c7 authored by wildfirecode's avatar wildfirecode

1

parent 3e0213cd
...@@ -23,6 +23,7 @@ export default class SceneCtrl { ...@@ -23,6 +23,7 @@ export default class SceneCtrl {
const cls = this._sceneClassMap[type]; const cls = this._sceneClassMap[type];
const scene: Scene = new cls(); const scene: Scene = new cls();
if (!window['development']) { if (!window['development']) {
if(type!=ModuleTypes.START_SCENE)
Loading.instace.show(); Loading.instace.show();
const key = scene.skinKey.toLowerCase(); const key = scene.skinKey.toLowerCase();
const promise = Promise.all([ const promise = Promise.all([
......
...@@ -51,8 +51,8 @@ export class Loading2 extends egret.Sprite { ...@@ -51,8 +51,8 @@ export class Loading2 extends egret.Sprite {
} }
show() { show() {
Loading2._parent.addChild(this); // Loading2._parent.addChild(this);
this.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this); // this.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this);
} }
hide() { hide() {
......
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