dd
This commit is contained in:
@@ -63,9 +63,7 @@ export class HeroCard extends ecs.Entity {
|
||||
node.parent = parent;
|
||||
// node.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*scale, node.getChildByName("avatar").scale.y, node.getChildByName("avatar").scale.z);
|
||||
node.setPosition(pos)
|
||||
|
||||
resources.load(url, SpriteAtlas, (err: any, atlas) => {
|
||||
console.log("hero_card load",node)
|
||||
const sprite = node.getChildByName("hero").getComponent(Sprite);
|
||||
sprite.spriteFrame = atlas.getSpriteFrame(pathName);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user