继续完善 装备buff

This commit is contained in:
2025-06-12 16:24:23 +08:00
parent 4c0d1023a0
commit cb38aa55a4
12 changed files with 227 additions and 190 deletions

View File

@@ -1,4 +1,5 @@
import { _decorator, Component, Node, view, UITransform, Vec3, math, EventHandler, Graphics, Color, TweenEasing, Enum } from 'cc';
import { SkillCom } from '../skills/SkillCom';
const { ccclass, property } = _decorator;
// 定义缓动类型枚举
@@ -151,7 +152,11 @@ export class BezierMove extends Component {
this.node.setPosition(this._endPoint);
this._isMoving = false;
// 触发移动完成事件
// EventHandler.emitEvents(this.onMoveComplete, this);
console.log("onMoveComplete")
let skill=this.node.getComponent(SkillCom)
if(skill){
skill.doDestroy()
}
this._moveEndCallback && this._moveEndCallback.apply(this._moveEndTarget);
// 清除轨迹
if (this.showTrajectory && this._graphics) {