英雄和敌人 全死亡后,判定解决
This commit is contained in:
@@ -55,6 +55,7 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 使
|
||||
|
||||
fight_ready(){
|
||||
// console.log("[MissionMonComp]:fight_ready")
|
||||
smc.vmdata.mission_data.mon_num=0
|
||||
this.do_mon_wave()
|
||||
}
|
||||
|
||||
@@ -95,7 +96,6 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 使
|
||||
|
||||
|
||||
do_mon_wave(){
|
||||
// console.log("[MissionMonComp]:怪物登场,当前关卡 :",smc.vmdata.mission_data.current_wave)
|
||||
// 重置召唤相关状态
|
||||
this.spawnCount = 0;
|
||||
this.isPausing = false;
|
||||
@@ -112,11 +112,10 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 使
|
||||
|
||||
// 根据新的关卡配置生成怪物
|
||||
private generateMonstersFromStageConfig(monsterConfigs: any[]) {
|
||||
const currentStage = smc.vmdata.mission_data.current_wave;
|
||||
const currentStage = smc.vmdata.mission_data.mission;
|
||||
|
||||
// 设置怪物总数
|
||||
smc.vmdata.mission_data.mon_num = monsterConfigs.length;
|
||||
|
||||
console.log("[MissionMonComp] generateMonstersFromStageConfig",monsterConfigs)
|
||||
if (!monsterConfigs || monsterConfigs.length === 0) {
|
||||
console.warn(`[MissionMonComp]:关卡${currentStage}配置中没有怪物信息`);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user