继续技能系统重构

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

View File

@@ -112,15 +112,11 @@ export class SkillConComp extends CCComp {
if (!this.node || !this.node.isValid || !this.HeroView || !this.HeroView.node || !this.HeroView.node.isValid) {
return;
}
if(config.uuid==6021){
console.log("[SkillConComp] 技能起始坐标:",this.HeroView.node.position.x + BoxSet.ATK_X * this.HeroView.scale,this.HeroView.node.position.y + BoxSet.ATK_Y,0)
}
sEnt.load(
new Vec3(this.HeroView.node.position.x + BoxSet.ATK_X * this.HeroView.scale,
this.HeroView.node.position.y + BoxSet.ATK_Y, 0),
new Vec3(this.HeroView.node.position.x,this.HeroView.node.position.y,0),
this.node.parent,
config.uuid,
[new Vec3(target.x, target.y+BoxSet.ATK_Y, 0)],
[new Vec3(target.x, target.y, 0)],
this.HeroView,
dmg
);