This commit is contained in:
2024-08-18 23:38:55 +08:00
parent e8dbb9bab3
commit 8f57f57c1d
1004 changed files with 234067 additions and 16087 deletions

View File

@@ -29,7 +29,7 @@ export class SkillCom extends CCComp {
}
onPostSolve (selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) {
switch (selfCollider.group) {
case BoxSet.HERO_SKILL:
switch (otherCollider.group){
case BoxSet.MONSTER:
@@ -49,16 +49,13 @@ export class SkillCom extends CCComp {
break;
case BoxSet.MONSTER_SKILL:
switch (otherCollider.group){
case BoxSet.PLAYER:
case BoxSet.HERO:
if(this.is_destroy){
return
}else{
if(!this.is_destroy){
this.is_destroy = true;
this.toDestroy();
}
// console.log('monster skill',selfCollider,otherCollider);
// this.reset()
break;
break
}
}