fix: 修复角色控制器和任务卡片的显示问题

修复角色控制器prefab的_active属性设置为true以正确显示
将SingletonModuleComp的showInfo默认值改为true以显示信息
在MissionCardComp的onMissionStart中添加noStop.active = false以正确初始化状态
This commit is contained in:
panw
2026-01-15 15:04:44 +08:00
parent 57ea9a1587
commit fe5ed952d5
3 changed files with 3 additions and 2 deletions

View File

@@ -16796,7 +16796,7 @@
"__id__": 1419 "__id__": 1419
} }
], ],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 1688 "__id__": 1688

View File

@@ -52,7 +52,7 @@ export class SingletonModuleComp extends ecs.Comp {
exp:0, exp:0,
task:0, task:0,
noStop:false, noStop:false,
showInfo:false, showInfo:true,
} }
guides:any=[0,0,0,0,0] guides:any=[0,0,0,0,0]
current_guide:number=0 current_guide:number=0

View File

@@ -89,6 +89,7 @@ export class MissionCardComp extends CCComp {
onMissionStart() { onMissionStart() {
this.isLocked = true; this.isLocked = true;
this.isAdUnlocked = false; this.isAdUnlocked = false;
this.noStop.active = false;
if (this.Lock) this.Lock.active = false; // 初始不显示,等待 showCardType if (this.Lock) this.Lock.active = false; // 初始不显示,等待 showCardType
if(this.unLock) this.unLock.active=false if(this.unLock) this.unLock.active=false
this.eventQueue = []; this.eventQueue = [];