dd
This commit is contained in:
@@ -136,12 +136,13 @@ export class MonsterViewComp extends CCComp {
|
||||
// console.log('monster view group 相同');
|
||||
switch (selfCollider.group) {
|
||||
case BoxSet.HERO:
|
||||
if(self_pos.x < other_pos.x&&Math.abs(self_pos.x-other_pos.x) <= BoxSet.MOVE_RANGE_X && self_pos.y==other_pos.y){
|
||||
if(self_pos.x < other_pos.x){
|
||||
this.stop_cd=0.1
|
||||
}
|
||||
this.stop_cd=0.1
|
||||
break;
|
||||
case BoxSet.MONSTER:
|
||||
if(self_pos.x > other_pos.x&&Math.abs(self_pos.x-other_pos.x) <= BoxSet.MOVE_RANGE_X && self_pos.y==other_pos.y){
|
||||
if(self_pos.x > other_pos.x){
|
||||
this.stop_cd=0.1
|
||||
}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user