diff --git a/assets/script/game/skills/SkillCom.ts b/assets/script/game/skills/SkillCom.ts index 65fa2403..7a628a6e 100644 --- a/assets/script/game/skills/SkillCom.ts +++ b/assets/script/game/skills/SkillCom.ts @@ -56,16 +56,6 @@ export class SkillCom extends CCComp { onBeginContact (seCol: Collider2D, otCol: Collider2D, contact: IPhysics2DContact | null) { if(otCol.group != seCol.group&&otCol.tag ==0){ this.atk_count+=1 - // console.log("skill onBeginContact",otCol.node.getComponent(HeroViewComp).uuid) - // let uid=otCol.node.getComponent(HeroViewComp).uuid - // const count = this.enemys.filter(enemy => enemy.uid === uid).length; - // if(count==0){ - // // otCol.node.getComponent(HeroViewComp).check_uatk(this) - // console.log("count==0",otCol.node.getComponent(HeroViewComp).uuid) - // this.enemys.push(uid) - // } - - if(this.run==1 ){ this.is_destroy=true }