添加新技能

This commit is contained in:
2025-10-15 22:56:55 +08:00
parent 9e2ae6f30f
commit 7ec02c4b9e
19 changed files with 3528 additions and 1823 deletions

View File

@@ -30,13 +30,15 @@ load(startPos: Vec3, parent: Node, uuid: number, targetPos: any[], caster:Hero
console.error("[Skill] 预制体加载失败:", path);
return;
}
console.log("load skill startPos",startPos)
// console.log("load skill startPos",startPos)
const node: Node = instantiate(prefab);
console.log("load skill node",node)
node.parent = parent;
// 设置节点属性
node.setPosition(startPos);
if(caster.fac==FacSet.MON){
node.scale=v3(node.scale.x*-1,1,1)
}else{
if(caster.type==HType.warrior){
if(caster.node.scale.x<0){