场上卡牌优化

This commit is contained in:
2024-09-03 08:59:36 +08:00
parent 8b9c04eae3
commit cb9be29151
12 changed files with 2556 additions and 1397 deletions

View File

@@ -91,7 +91,9 @@ export class MonsterViewComp extends CCComp {
this.sprite = this.node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite);
this.node.getChildByName("top").setScale(this.scale,1);
this.node.getChildByName("atk").setScale(this.scale,1);
this.node.getChildByName("atk").getComponent(Label).string = this.atk.toString();
this.node.getChildByName("hp_max").setScale(this.scale,1);
this.node.getChildByName("hp_max").getComponent(Label).string=this.hp_max.toString();
this.orginalFlashMaterial = this.sprite.getRenderMaterial(0);