继续技能系统重构
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user