提速了下

This commit is contained in:
2025-07-21 14:36:57 +08:00
parent 9b4e9073a2
commit 163e8273c5
8 changed files with 24 additions and 3522 deletions

View File

@@ -79,7 +79,7 @@ export class SkillCom extends CCComp {
}
oops.message.on(GameEvent.MissionEnd, this.doDestroy, this);
this.node.active = true;
// //console.log("[SkillCom]:caster",this.caster)
//console.log("[SkillCom]:caster",this.caster)
let collider = this.getComponent(Collider2D);
@@ -124,15 +124,15 @@ export class SkillCom extends CCComp {
this.node.setPosition(this.targetPos.x,this.targetPos.y,0)
if(this.node.getComponent(Animation)){
let anim = this.node.getComponent(Animation);
// //console.log("[SkillCom]:has anim",anim)
//console.log("[SkillCom]:has anim",anim)
anim.on(Animation.EventType.FINISHED, this.onAnimationFinished, this);
}
if(this.node.getChildByName('anm')){
if(this.node.getChildByName('anm').getComponent('sp.Skeleton')){
// //console.log("[SkillCom]:has spine",this.spine)
//console.log("[SkillCom]:has spine",this.spine)
this.spine.setCompleteListener((trackEntry) => {
this.onAnimationFinished()
// //console.log("[SkillCom]:[track %s][animation %s] complete: %s", trackEntry.trackIndex);
//console.log("[SkillCom]:[track %s][animation %s] complete: %s", trackEntry.trackIndex);
});
}
}
@@ -141,7 +141,7 @@ export class SkillCom extends CCComp {
this.node.setPosition(this.startPos.x,this.startPos.y,0)
this.scheduleOnce(()=>{
this.do_buff()
//console.log("[SkillCom]:fixedStart",SkillSet[this.s_uuid].in-0.2)
// console.log("[SkillCom]:fixedStart",SkillSet[this.s_uuid].in-0.2)
},SkillSet[this.s_uuid].in-0.2)
break;
}
@@ -155,7 +155,7 @@ export class SkillCom extends CCComp {
}
//范围伤害
range_damage(){
console.log("[SkillCom]:range_damage",this.s_uuid)
// console.log("[SkillCom]:range_damage",this.s_uuid)
let enemys=ecs.query(ecs.allOf(MonModelComp))
if(this.fac==FacSet.MON) enemys=ecs.query(ecs.allOf(HeroModelComp))
enemys.forEach(entity => {