refactor(UI): 移除多余节点激活逻辑并更新预制体配置
移除HInfoComp和VictoryComp中多余的节点激活代码 更新card.prefab的节点结构和组件引用 调整ubtns.plist.meta中的纹理坐标和旋转配置
This commit is contained in:
@@ -168,7 +168,6 @@ export class HInfoComp extends CCComp {
|
||||
}
|
||||
show_lock(){
|
||||
this.node.getChildByName("buy").active=!this.is_own()
|
||||
this.node.getChildByName("lock").active=!this.is_own()
|
||||
}
|
||||
claear_hero(){
|
||||
for (let i = 0; i < this.heroNodes.length; i++) {
|
||||
|
||||
@@ -31,7 +31,6 @@ export class VictoryComp extends CCComp {
|
||||
if(args.game_data){
|
||||
this.game_data=args.game_data
|
||||
}
|
||||
this.node.getChildByName("title").getChildByName("victory").active=true
|
||||
this.node.getChildByName("btns").getChildByName("next").active=false
|
||||
this.scheduleOnce(()=>{
|
||||
this.node.getChildByName("btns").getChildByName("next").active=true
|
||||
|
||||
Reference in New Issue
Block a user