修补小错误

This commit is contained in:
2024-11-28 10:47:45 +08:00
parent f32a7e5c47
commit a0cc46e0b2
3 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,6 @@ const { ccclass, property } = _decorator;
@ecs.register('ItemInfo', false)
export class ItemInfoComp extends CCComp {
onAdded(args: any) {
console.log("args",args);
this.node.getChildByName("name").getComponent(Label).string=args.name
this.node.getChildByName("info").getComponent(Label).string=args.info
}