From 551715ef44a56afb1c6c3ddde835f6474c3e8223 Mon Sep 17 00:00:00 2001 From: panFD Date: Mon, 20 Jul 2026 22:35:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(map):=20=E6=B3=A8=E9=87=8A=E6=8E=89?= =?UTF-8?q?=E6=88=98=E6=96=97=E7=9B=92=E5=AD=90=E8=8A=82=E7=82=B9=E7=9A=84?= =?UTF-8?q?=E6=98=BE=E5=BC=8F=E6=98=BE=E9=9A=90=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 暂时禁用了fight节点下fbox的自动显隐操作,避免不必要的UI状态干扰 --- assets/script/game/map/MissionComp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/script/game/map/MissionComp.ts b/assets/script/game/map/MissionComp.ts index 5a6b077d..58808618 100644 --- a/assets/script/game/map/MissionComp.ts +++ b/assets/script/game/map/MissionComp.ts @@ -199,12 +199,12 @@ export class MissionComp extends CCComp { this.mission_start(); }, 0); smc.map.MapView.scene.mapLayer.stopAnimations(); - smc.map.MapView.scene.mapLayer.node.getChildByName("fight").getChildByName("fbox").active = true; + // smc.map.MapView.scene.mapLayer.node.getChildByName("fight").getChildByName("fbox").active = true; } onDestroy() { smc.map.MapView.scene.mapLayer.playAnimations() - smc.map.MapView.scene.mapLayer.node.getChildByName("fight").getChildByName("fbox").active = false; + // smc.map.MapView.scene.mapLayer.node.getChildByName("fight").getChildByName("fbox").active = false; super.onDestroy(); if (this.start_btn && this.start_btn.isValid) { this.start_btn.off(NodeEventType.TOUCH_END, this.onStartFightBtnClick, this);