mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-12-14 00:39:16 +00:00
更新无限模式
This commit is contained in:
@@ -36,7 +36,7 @@ export default class GBaseMode<T> extends GObject<T> {
|
||||
onSyncUpdate(dt: number,frame:JNFrameInfo, input?: T) {
|
||||
|
||||
//重置 场景中的层级
|
||||
[...this.node.children].sort((node1,node2) => node2.worldPosition.y - node1.worldPosition.y).forEach((node,index) => {
|
||||
[...this.scene.children].sort((node1,node2) => node2.worldPosition.y - node1.worldPosition.y).forEach((node,index) => {
|
||||
node.setSiblingIndex(index);
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user