This commit is contained in:
2025-01-09 12:39:38 +08:00
parent 52cc268368
commit 34adc1d6fc

View File

@@ -56,16 +56,6 @@ export class SkillCom extends CCComp {
onBeginContact (seCol: Collider2D, otCol: Collider2D, contact: IPhysics2DContact | null) { onBeginContact (seCol: Collider2D, otCol: Collider2D, contact: IPhysics2DContact | null) {
if(otCol.group != seCol.group&&otCol.tag ==0){ if(otCol.group != seCol.group&&otCol.tag ==0){
this.atk_count+=1 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 ){ if(this.run==1 ){
this.is_destroy=true this.is_destroy=true
} }