Commit e1f049c7 authored by wildfirecode's avatar wildfirecode

1

parent 3e0213cd
......@@ -23,7 +23,8 @@ export default class SceneCtrl {
const cls = this._sceneClassMap[type];
const scene: Scene = new cls();
if (!window['development']) {
Loading.instace.show();
if(type!=ModuleTypes.START_SCENE)
Loading.instace.show();
const key = scene.skinKey.toLowerCase();
const promise = Promise.all([
RES.getResAsync(`${key}_json`),
......
......@@ -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