奖励页面ui 修改完成
This commit is contained in:
@@ -25,7 +25,6 @@ export class HChipComp extends Component {
|
||||
update_data(uuid:number,num:number=0){
|
||||
this.h_uuid = uuid;
|
||||
var icon_path = "game/heros/herois"
|
||||
console.log("HeroInfo[uuid]",HeroInfo[uuid],uuid)
|
||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||
const sprite = this.node.getChildByName("hero").getChildByName("icon").getComponent(Sprite);
|
||||
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
|
||||
|
||||
Reference in New Issue
Block a user