继续技能系统重构

This commit is contained in:
2025-10-15 17:28:16 +08:00
parent 2e2c9d82f9
commit 9e2ae6f30f
11 changed files with 116 additions and 76 deletions

View File

@@ -1,6 +1,7 @@
import { _decorator, Component, Node, view, UITransform, Vec3, math, EventHandler, Graphics, Color, TweenEasing, Enum } from 'cc';
import { SkillCom } from '../skills/SkillCom';
import { smc } from '../common/SingletonModuleComp';
import { AtkConCom } from '../skill/AtkConCom';
const { ccclass, property } = _decorator;
// 定义缓动类型枚举
@@ -154,7 +155,9 @@ export class BezierMove extends Component {
this._isMoving = false;
// 触发移动完成事件
// console.log("onMoveComplete")
let skill=this.node.getComponent(SkillCom)
let scom=this.node.getComponent(SkillCom)
let acom=this.node.getComponent(AtkConCom)
let skill=scom?scom:acom
if(skill){
skill.doDestroy()
}