开始重构技能系统

This commit is contained in:
2025-10-14 10:53:14 +08:00
parent 43561fa1cc
commit 7441e94419
11 changed files with 888 additions and 203 deletions

View File

@@ -45,7 +45,7 @@ export class Skill extends ecs.Entity {
}
// 加载预制体
const path = `game/skills/${config.sp_name}`;
const path = `game/skill/atk/${config.sp_name}`;
const prefab:Prefab = oops.res.get(path, Prefab);
if (!prefab) {
console.error("[Skill] 预制体加载失败:", path);