修改了挺多, 继续完善 战斗流程设计
This commit is contained in:
@@ -9,6 +9,7 @@ import { RandomManager } from "db://oops-framework/core/common/random/RandomMana
|
||||
import { Timer } from "db://oops-framework/core/common/timer/Timer";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
import { GameEvent } from "../common/config/GameEvent";
|
||||
import { oops } from "db://oops-framework/core/Oops";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -52,7 +53,8 @@ export class MissionMonCompComp extends CCComp {
|
||||
|
||||
|
||||
mon_refresh(){
|
||||
console.log("mon_refresh:start load monster lv :",smc.mission.lv)
|
||||
oops.message.dispatchEvent(GameEvent.WaveUpdate)
|
||||
console.log("怪物登场,当前波次 :",smc.vmdata.mission_data.current_wave)
|
||||
let positions = [0, 1, 2];
|
||||
positions.forEach(pos => {
|
||||
let x = RandomManager.instance.getRandomInt(0, Missions[0].length, 1);
|
||||
|
||||
Reference in New Issue
Block a user