This commit is contained in:
2024-08-05 09:58:06 +08:00
parent c3e72b2469
commit ccff9e14fb
12 changed files with 4 additions and 453 deletions

View File

@@ -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();