继续技能系统重构

This commit is contained in:
panw
2025-10-15 17:28:16 +08:00
parent 2e2c9d82f9
commit 9e2ae6f30f
11 changed files with 116 additions and 76 deletions

View File

@@ -30,9 +30,7 @@ load(startPos: Vec3, parent: Node, uuid: number, targetPos: any[], caster:Hero
console.error("[Skill] 预制体加载失败:", path);
return;
}
if(uuid==6001){
console.log("load skill startPos",startPos)
}
console.log("load skill startPos",startPos)
const node: Node = instantiate(prefab);
node.parent = parent;
// 设置节点属性
@@ -52,6 +50,8 @@ load(startPos: Vec3, parent: Node, uuid: number, targetPos: any[], caster:Hero
Object.assign(SComp, {
// 核心标识
s_uuid: uuid,
cName:caster.hero_name,
scale: caster.node.scale.x,
// 位置和施法者信息
startPos: startPos,
targetPos: targetPos,