From fe5ed952d5fbba914782f5dd8bba3bd01d8ef89e Mon Sep 17 00:00:00 2001 From: panw Date: Thu, 15 Jan 2026 15:04:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=99=A8=E5=92=8C=E4=BB=BB=E5=8A=A1=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E7=9A=84=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 修复角色控制器prefab的_active属性设置为true以正确显示 将SingletonModuleComp的showInfo默认值改为true以显示信息 在MissionCardComp的onMissionStart中添加noStop.active = false以正确初始化状态 --- assets/resources/gui/role_controller.prefab | 2 +- assets/script/game/common/SingletonModuleComp.ts | 2 +- assets/script/game/map/MissionCardComp.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index cbd86ba6..a080b88c 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -16796,7 +16796,7 @@ "__id__": 1419 } ], - "_active": false, + "_active": true, "_components": [ { "__id__": 1688 diff --git a/assets/script/game/common/SingletonModuleComp.ts b/assets/script/game/common/SingletonModuleComp.ts index 6f4aeb81..82f440e2 100644 --- a/assets/script/game/common/SingletonModuleComp.ts +++ b/assets/script/game/common/SingletonModuleComp.ts @@ -52,7 +52,7 @@ export class SingletonModuleComp extends ecs.Comp { exp:0, task:0, noStop:false, - showInfo:false, + showInfo:true, } guides:any=[0,0,0,0,0] current_guide:number=0 diff --git a/assets/script/game/map/MissionCardComp.ts b/assets/script/game/map/MissionCardComp.ts index 6fa357da..15034fbd 100644 --- a/assets/script/game/map/MissionCardComp.ts +++ b/assets/script/game/map/MissionCardComp.ts @@ -89,6 +89,7 @@ export class MissionCardComp extends CCComp { onMissionStart() { this.isLocked = true; this.isAdUnlocked = false; + this.noStop.active = false; if (this.Lock) this.Lock.active = false; // 初始不显示,等待 showCardType if(this.unLock) this.unLock.active=false this.eventQueue = [];