攻击距离设定
This commit is contained in:
@@ -63,9 +63,9 @@ export class BoxRangComp extends CCComp {
|
||||
this.MonViewComp.enemy = otherCollider.node;
|
||||
}
|
||||
}
|
||||
if(Math.abs(other_pos.x-self_pos.x) < this.atk_range){
|
||||
if(Math.abs(other_pos.x-self_pos.x) < this.MonViewComp.atk_dis){
|
||||
this.MonViewComp.is_atking = true;
|
||||
// this.MonViewComp.stop_cd = 0.1
|
||||
this.MonViewComp.stop_cd = 0.1
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user