场上卡牌优化
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user