This commit is contained in:
walkpan
2024-08-03 23:54:37 +08:00
parent d5f2f65ee6
commit a81cde8e82
108 changed files with 7182 additions and 2487 deletions

View File

@@ -17,7 +17,9 @@ export class data extends ecs.Entity {
protected init() {
this.addComponents<ecs.Comp>(dataViewComp,dataModelComp);
}
changeHp(min: number, max: number){
var data = this.dataModel;
}
/** 模块资源释放 */
destroy() {
// 注: 自定义释放逻辑,视图层实现 ecs.IComp 接口的 ecs 组件需要手动释放