mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-03 10:14:34 +08:00
fix: 传送门图层
This commit is contained in:
1 parent
977a6784b9
commit
dcb952f92d
13 files changed
+247
-122
No files matched your search
@@ -41,7 +41,7 @@ export class LayerGroupPortal implements ILayerGroupRenderExtends {
|
||||
this.portal = new Portal();
|
||||
this.portal.setHD(true);
|
||||
this.portal.size(group.width, group.height);
|
||||
group.getLayer('event')?.appendChild(this.portal);
|
||||
group.appendChild(this.portal);
|
||||
this.listen();
|
||||
} else {
|
||||
logger.error(
|
||||
@@ -105,10 +105,10 @@ export class Portal extends Sprite {
|
||||
}
|
||||
});
|
||||
|
||||
this.setZIndex(90);
|
||||
|
||||
this.setRenderFn((canvas, transform) => {
|
||||
// console.time();
|
||||
this.renderPortal(canvas);
|
||||
// console.timeEnd();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user