继续完善 装备buff
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user