dd
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user