This commit is contained in:
2024-12-11 16:55:06 +08:00
parent eab71044d0
commit de39c74d4a
17 changed files with 3434 additions and 4543 deletions

View File

@@ -0,0 +1,24 @@
import { _decorator } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@ccclass('MSkillComp')
@ecs.register('MSkillComp', false)
export class MSkillComp extends CCComp {
s_uuid: number = 0;
group: number = 0;
/** 视图层逻辑代码分离演示 */
start() {
console.log("MSkillComp start s_uuid:",this.s_uuid,this.group);
}
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {
this.node.destroy();
}
}