奖励物品基本完成

This commit is contained in:
2024-11-26 16:26:38 +08:00
parent 3b8052761c
commit 6f58500ea9
6 changed files with 56 additions and 458 deletions

View File

@@ -1,6 +1,7 @@
import { _decorator, Label } from "cc";
import { _decorator, Label, resources, Sprite, SpriteAtlas } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { Items } from "../common/config/Items";
const { ccclass, property } = _decorator;
@@ -11,7 +12,7 @@ export class ItemComp extends CCComp {
i_uuid:number = 0;
num:number = 0;
start() {
this.node.getChildByName("num").getComponent(Label).string = this.num.toString();
//todo 设定icon 显示
}