fix: 修复角色控制器和任务卡片的显示问题
修复角色控制器prefab的_active属性设置为true以正确显示 将SingletonModuleComp的showInfo默认值改为true以显示信息 在MissionCardComp的onMissionStart中添加noStop.active = false以正确初始化状态
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user