feat(地图): 在MissionCardComp中添加Lock节点控制
添加Lock节点属性并初始化其状态为true,用于控制任务卡片的锁定状态
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -32,6 +32,9 @@ export class MissionCardComp extends CCComp {
|
||||
@property(Node)
|
||||
btnClose: Node = null!
|
||||
|
||||
@property(Node)
|
||||
Lock: Node = null!
|
||||
|
||||
card1_data:any = null!
|
||||
card2_data:any = null!
|
||||
card3_data:any = null!
|
||||
@@ -57,6 +60,7 @@ export class MissionCardComp extends CCComp {
|
||||
start() {
|
||||
// 初始隐藏或显示逻辑
|
||||
this.node.active = false;
|
||||
this.Lock.active = true;
|
||||
this.resetCardStates();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user