Commit 8d5d242c authored by wildfirecode's avatar wildfirecode

1

parent 5fdbab8d
......@@ -15,21 +15,15 @@ class Layers extends eui.UILayer {
this.addChild(this._topLayer);
}
_removeTag: number;
_bg: egret.Bitmap;
addFirstBackground(bitmap: egret.Bitmap): any {
if (!this._removeTag) {
this._bg = bitmap;
this._bottomLayer.addChild(bitmap);
}
this._bg = bitmap;
this._bottomLayer.addChild(bitmap);
}
removeFirstBackground(): any {
this._removeTag = 1;
if (this._bg) {
this._bottomLayer.removeChild(this._bg);
this._bg = null;
}
this._bottomLayer.removeChild(this._bg);
this._bg = null;
}
get topLayer() { return this._topLayer }
......
首屏显示时间:2689ms
MainBase.ts:187 start scene显示时间:3750ms
\ No newline at end of file
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