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