mission_end

This commit is contained in:
2024-11-21 18:16:44 +08:00
parent 2ff8e9c911
commit 763d327625
5 changed files with 399 additions and 1011 deletions

View File

@@ -207,7 +207,7 @@ export class HeroViewComp extends CCComp {
onPostSolve (selfCollider: Collider2D, otherCollider: Collider2D) {
}
update(dt: number){
if(!smc.vm_data.mission.play||smc.vm_data.pause||smc.vm_data.mission.is_victory||smc.vm_data.mission.is_defeat) return
if(!smc.vm_data.mission.play||smc.vm_data.pause) return
if(this.is_dead) {
if(!this.in_grave()) this.to_grave()
return
@@ -281,7 +281,7 @@ export class HeroViewComp extends CCComp {
}
}
move(dt: number){
if(this.stop_cd > 0){
if(this.stop_cd > 0||smc.vm_data.mission.is_victory||smc.vm_data.mission.is_defeat){
this.status_change("idle")
return
}