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