修补小错误
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user