Commit 8d5d242c authored by wildfirecode's avatar wildfirecode

1

parent 5fdbab8d
...@@ -15,22 +15,16 @@ class Layers extends eui.UILayer { ...@@ -15,22 +15,16 @@ class Layers extends eui.UILayer {
this.addChild(this._topLayer); this.addChild(this._topLayer);
} }
_removeTag: number;
_bg: egret.Bitmap; _bg: egret.Bitmap;
addFirstBackground(bitmap: egret.Bitmap): any { addFirstBackground(bitmap: egret.Bitmap): any {
if (!this._removeTag) {
this._bg = bitmap; this._bg = bitmap;
this._bottomLayer.addChild(bitmap); this._bottomLayer.addChild(bitmap);
} }
}
removeFirstBackground(): any { removeFirstBackground(): any {
this._removeTag = 1;
if (this._bg) {
this._bottomLayer.removeChild(this._bg); this._bottomLayer.removeChild(this._bg);
this._bg = null; this._bg = null;
} }
}
get topLayer() { return this._topLayer } get topLayer() { return this._topLayer }
get popupLayer() { return this._popupLayer } get popupLayer() { return this._popupLayer }
......
首屏显示时间: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