游戏流程控制通过节点间 通信完成

This commit is contained in:
2025-05-29 16:45:43 +08:00
parent 8cb3fe192d
commit e695b9bdac
7 changed files with 75 additions and 82 deletions

View File

@@ -265,7 +265,7 @@ export class HeroViewComp extends CCComp {
console.log("角色死亡",this.hero_uuid)
if(this.hero_uuid == 9999){
console.log("任务失败")
oops.message.dispatchEvent(GameEvent.MissionLoss,this)
oops.message.dispatchEvent(GameEvent.FightEnd,this)
}
}
do_atked(remainingDamage:number){