完成开箱抽卡 和 怪物掉落设置
This commit is contained in:
@@ -30,7 +30,7 @@ export class HChipComp extends Component {
|
||||
const sprite = this.node.getChildByName("hero").getChildByName("icon").getComponent(Sprite);
|
||||
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
|
||||
});
|
||||
if(num > 0){
|
||||
if(num > 1){
|
||||
this.node.getChildByName("num").getComponent(Label).string = num.toString();
|
||||
}else{
|
||||
this.node.getChildByName("num").getComponent(Label).string = "";
|
||||
|
||||
Reference in New Issue
Block a user