diff --git a/assets/script/game/skills/SkillCom.ts b/assets/script/game/skills/SkillCom.ts index 6a2ed762..a3b6d713 100644 --- a/assets/script/game/skills/SkillCom.ts +++ b/assets/script/game/skills/SkillCom.ts @@ -47,6 +47,7 @@ export class SkillCom extends CCComp { //通过欧拉角 延长 目标点 增量 // this.t_pos.x=Math.cos(this.angle * Math.PI / 180) * this.dis; // this.t_pos.y=Math.sin(this.angle * Math.PI / 180) * this.dis; + tween(this.node).to( 0.5,{ angle:this.angle,position: this.t_pos}, { onUpdate: (target: Vec3, ratio: number) => { // onUpdate 接受当前缓动的进度