From 2d5653e0e473e7d139c17097d016c8d9a61f4a1f Mon Sep 17 00:00:00 2001 From: walkpan Date: Mon, 3 Nov 2025 13:39:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(hero):=20=E4=BF=AE=E5=A4=8DBOSS=E6=80=AA?= =?UTF-8?q?=E7=89=A9=E5=B1=82=E7=BA=A7=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当怪物为BOSS类型时,设置其节点层级为BOSS专用层级,确保BOSS显示在正确层级 --- assets/script/game/hero/Mon.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/script/game/hero/Mon.ts b/assets/script/game/hero/Mon.ts index 6c15dce0..bb70b514 100644 --- a/assets/script/game/hero/Mon.ts +++ b/assets/script/game/hero/Mon.ts @@ -69,6 +69,7 @@ export class Monster extends ecs.Entity { model.type = hero.type; model.fac = FacSet.MON; model.is_boss = monType == MonType.BOSS; + if(model.is_boss) node.setSiblingIndex(IndexSet.BOSS); if(!model.is_boss){ model.is_kalami = true; }