Commit e1f049c7 authored by wildfirecode's avatar wildfirecode

1

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