技能添加

This commit is contained in:
2025-07-24 23:43:22 +08:00
parent 81a45e4387
commit a5a0c26e8f
27 changed files with 9664 additions and 1230 deletions

View File

@@ -120,7 +120,7 @@ export class SkillCom extends CCComp {
this.executeTwoStageMovement();
break;
case AType.fixedEnd:
this.node.setPosition(this.targetPos.x,this.targetPos.y,0)
this.node.setPosition(this.targetPos.x > 360?300:this.targetPos.x,0,0)
if(this.node.getComponent(Animation)){
let anim = this.node.getComponent(Animation);
//console.log("[SkillCom]:has anim",anim)
@@ -137,7 +137,8 @@ export class SkillCom extends CCComp {
}
break;
case AType.fixedStart: //
this.node.setPosition(this.startPos.x,this.startPos.y,0)
this.node.setPosition(this.startPos.x > 360?300:this.startPos.x,0,0)
if(this.node.getComponent(Animation)){
let anim = this.node.getComponent(Animation);