This commit is contained in:
2025-06-20 11:02:42 +08:00
parent a31710e2d9
commit 211dd26ca3
3 changed files with 52 additions and 117 deletions

View File

@@ -176,14 +176,14 @@ export class FightConComp extends Component {
console.error("[FightConComp] 主角视图组件获取失败");
return;
}
let angle=0
let targets = this.pickRandomTarget(data.count)
let target_pos= new Vec3(0,0,0)
if(targets.length==0){
target_pos=this.aoe_target_pos
}else{
target_pos= new Vec3(targets[0].get(HeroViewComp).node.position.x,targets[0].get(HeroViewComp).node.position.y,0)
target_pos= new Vec3(targets[0].get(HeroViewComp).node.position.x,0,0)
}
skill.load(