开始重构技能系统

This commit is contained in:
2025-10-14 10:53:14 +08:00
parent 43561fa1cc
commit 7441e94419
11 changed files with 888 additions and 203 deletions

View File

@@ -22,7 +22,6 @@ const { ccclass, property } = _decorator;
export class SkillCom extends CCComp {
// 核心标识和配置
s_uuid:number = 0;
// 运行时状态(必须缓存的)
is_destroy:boolean = false;
startPos: Vec3 = v3(); // 起始位置
@@ -81,14 +80,9 @@ export class SkillCom extends CCComp {
this.initializeSkillConfig();
if (!this.skillConfig) return;
this.node.setPosition(this.startPos.x,this.startPos.y,0)
this.anim=this.node.getComponent(Animation)
this.on(GameEvent.MissionEnd, this.doDestroy, this);
this.node.active = true;
//console.log("[SkillCom]:caster",this.caster)
let collider = this.getComponent(Collider2D);
if(collider) {
collider.group = this.group;