同步主站 Cocos 当前工程:关卡资源、运行脚本与打包工具。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -82,7 +82,7 @@ export class LevelDisplay {
|
||||
const walk = (node: Node | null | undefined) => {
|
||||
if (!node?.isValid) return;
|
||||
node.layer = UI_LAYER;
|
||||
node.active = true;
|
||||
if (node !== root) node.active = true;
|
||||
let ui = node.getComponent(UITransform);
|
||||
if (!ui) ui = node.addComponent(UITransform);
|
||||
if (node === root || node.name === 'Ground' || node.name === 'Border') {
|
||||
|
||||
Reference in New Issue
Block a user