dd
This commit is contained in:
@@ -166,7 +166,7 @@ export class MonsterViewComp extends CCComp {
|
||||
switch (this.camp) {
|
||||
case -1:
|
||||
if(this.node.position.x < BoxSet.LETF_END){
|
||||
this.node.destroy();
|
||||
this.reset();
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
@@ -185,7 +185,7 @@ export class MonsterViewComp extends CCComp {
|
||||
}
|
||||
|
||||
reset() {
|
||||
console.log("node destroy:",this.node,this.ent)
|
||||
// console.log("node destroy:",this.node,this.ent)
|
||||
smc.monsters_in = smc.monsters_in.filter(element => element.eid !== this.ent.eid);
|
||||
smc.monsters_in = smc.monsters_in.filter(element => element.eid !== this.ent.eid);
|
||||
this.node.destroy();
|
||||
|
||||
Reference in New Issue
Block a user